The PR refactors tests by simplifying asserts: swap actual-expected parameters, use assert.Len, assert.Greater etc. Additionally, enables testifylint to suggests these in a future.
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[x] Refactor
Version of Go used when building/testing:
[ ] 1.22
[x] 1.23
How Has This Been Tested?
Run unit tests.
Checklist
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
Description
The PR refactors tests by simplifying asserts: swap actual-expected parameters, use
assert.Len
,assert.Greater
etc. Additionally, enablestestifylint
to suggests these in a future.Type of change
Version of Go used when building/testing:
How Has This Been Tested?
Run unit tests.
Checklist