Closed peczenyj closed 5 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 73.40%. Comparing base (
e0e5901
) to head (0657092
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks!
here I try to handle two kinds of issues with tests
os.Setenv
in tests that need specific env vars and we need to revert the changes in the end. This usually is done via defer + some cleanup function BUT it may not run in many cases (like in a t.Fatal) andt.Setenv
already do this and it is battle tested. for this I used the linter tenv viagitlabci-lint
.t.Helper()
in many test helpers. This was done by using the linter thelper viagitlabci-lint
. The motivation is here: https://github.com/kulti/thelper?tab=readme-ov-file#whythis should have no impact in existing code or tests, but may help identify an issue from unit tests or benchmarks