Skip to content

Conversation

@majewsky
Copy link
Contributor

Missed this in #257. Without this, errors will be reported in this file instead of within the actual test functino.

@github-actions
Copy link

Merging this branch will decrease overall coverage

Impacted Packages Coverage Δ 🤖
github.com/sapcc/go-bits/must 27.27% (-6.06%) 👎

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/sapcc/go-bits/must/must.go 27.27% (-6.06%) 66 (+12) 18 48 (+12) 👎

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds missing t.Helper() calls to testing helper functions in the must package, which were overlooked in PR #257. These calls ensure that test failures are reported at the actual test call site rather than inside the helper function.

  • Added t.Helper() to SucceedT function
  • Added t.Helper() to the closure returned by ReturnT function

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SuperSandro2000 SuperSandro2000 merged commit a048ca8 into master Nov 19, 2025
13 checks passed
@SuperSandro2000 SuperSandro2000 deleted the must-t-helper branch November 19, 2025 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants