Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable testifylint and fix up lint issues #1276

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

alexandear
Copy link
Contributor

This PR improves the tests in autofix/ai_test.go.

Changes:

  • Added testifylint to the list of linters.
  • Replaced assert.Error and assert.Equal with require.ErrorEqual as suggested by testifylint.
  • Updated mock expectations to use .Once().
  • Changed to use mock.AssertExpectationsForObjects.

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.62%. Comparing base (1216c9b) to head (e06a222).
Report is 30 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1276      +/-   ##
==========================================
- Coverage   68.49%   66.62%   -1.88%     
==========================================
  Files          75       75              
  Lines        4384     5190     +806     
==========================================
+ Hits         3003     3458     +455     
- Misses       1233     1583     +350     
- Partials      148      149       +1     

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

@ccojocar ccojocar merged commit 54c2185 into securego:master Dec 20, 2024
6 checks passed
@alexandear alexandear deleted the enable-testifylint branch December 20, 2024 09:38
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