Skip to content

Increase Go test coverage#1271

Draft
adombeck wants to merge 7 commits intomainfrom
more-test-coverage
Draft

Increase Go test coverage#1271
adombeck wants to merge 7 commits intomainfrom
more-test-coverage

Conversation

@adombeck
Copy link
Contributor

Covers some error cases which were not tested before.

It's already tested in internal/services/permissions/permissions_test.go
but also testing it in internal/services/user/user_test.go increases the
test coverage percentage.
Using a Get prefix is unidiomatic, especially when the method doesn't
return an error.
@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.47%. Comparing base (375ba72) to head (8818ace).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1271      +/-   ##
==========================================
+ Coverage   86.04%   86.47%   +0.43%     
==========================================
  Files          99       99              
  Lines        6685     6685              
  Branches      111      111              
==========================================
+ Hits         5752     5781      +29     
+ Misses        877      848      -29     
  Partials       56       56              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant

Comments