-
Notifications
You must be signed in to change notification settings - Fork 641
feat: lint tests #1906
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
Merged
Merged
feat: lint tests #1906
Changes from all commits
Commits
Show all changes
117 commits
Select commit
Hold shift + click to select a range
ef878c1
remove unused linters that produced a warning and ensure that unparam…
faddat 70eb66a
apply the linters to tests
faddat e8209ba
additional autofixes
faddat 5b52c8f
test helpers
faddat 3daaf08
all helper functions start from t.Helper()
faddat 8114763
mainly assert -> require and other hygene changes
faddat 30aa064
further updates and attempts at fixes
faddat 39e2a80
further cleanups
faddat 52feef8
fix double declaration
faddat ba108c6
b.helper()
faddat 9c9612d
use stdlib http methods
faddat f800ff6
Fix test assertions in various test files
faddat cafb654
Fix validation test assertions
faddat 4da28eb
Fix test assertions and clean up code
faddat 6c928dd
Fix field element comparison in
faddat 3e5a58a
Fix various test failures and errors in the code
faddat da358a0
Fix assertion in
faddat 96e9c41
Fix error handling and add arguments to
faddat fb5abd2
as a piece of Free software, cometbft does NOT need to support digita…
faddat 1fb7922
Revert "b.helper()"
faddat 551cc8a
error handling
faddat 1c37828
reactor_test.go removed in master
faddat 18e4ec6
fix a bug from removing an error that is always nil
faddat 1aa95f2
use correct require calls
faddat 101c812
begin reversing expected and equal values
faddat 521ff62
complete reversing expected and actual
faddat 368cd39
favor require.NoError over require.Nil
faddat 5aa0fb5
fix issue with len in kvstore test
faddat 8e19f1f
use the correct numeral type in TestBlockStoreSaveLoadBlock
faddat a7b09b4
Fix test assertions in
faddat 6158c78
Fix assertions in test cases
faddat 2d58fce
Fix test assertions in rpc/client/helpers_test.go
faddat 55efb86
revert a store test fix that was causing issues
faddat d5c5759
Fix test assertions in state_test.go,
faddat 6fdb22d
assert.Gerater
faddat 6577fa7
Fix assert statements in test files
faddat ae9e437
Fix assertion order in TestBlockFetchAtHeight
faddat d14e3ec
fix regressions
faddat df91621
Fix test assertions in various test files
faddat 28a338e
Fix test assertions in detector_test.go,
faddat 5a4eede
Add gofmt linter and update assertions in tests
faddat f160df3
Fix test helper functions
faddat 6da2d3a
Refactor code to use strconv.Itoa instead of
faddat 17cdc7e
Fix assertion errors in unit tests
faddat 6d52a90
Fix test assertions in types_test.go,
faddat fc5dd31
Fix test cases and update provider configuration
faddat a39677a
Fix ValidateBasic assertion in http_test.go
faddat 1ed9a3a
attempt to fix a regression
faddat d6d4553
Refactor assert functions in verify_test.go
faddat c91456e
remove gocritic linter and update assertions in tests
faddat 7fc8cac
Fix error handling in state_test.go and
faddat e515876
Fix test assertions in store_test.go,
faddat 4408184
Fix test assertions in unit tests
faddat 855f2f6
Fix test assertions in unit tests
faddat cebc49c
Fix test assertions in store_test.go,
faddat 35cbe83
attempt to fix http test
faddat 2cc86de
Fix test assertions in peer_test.go,
faddat b498ad9
Fix various test assertions
faddat f4885e3
Fix test assertions in state_test.go,
faddat b444c0a
Fix test assertions and remove unused import
faddat 37e95c9
Fix test assertions in state_test.go and
faddat d023ecd
Fix makeValidCommit function signature
faddat c512b74
Fix assert statements and require.NoError usage in
faddat dc44553
Fix test assertions and error handling
faddat 286398e
Fix type conversion in
faddat 99e35fc
Fix test assertions in rpc/client/rpc_test.go and
faddat 9d7b1cd
Fix empty result assertion in TestTxSearch
faddat 82777b6
Fix variable initialization and remove unnecessary
faddat 8221186
remove unused code
faddat 3e0486e
finished :D
faddat 26e58ae
Fix reactorPairs initialization in
faddat ce424b6
Fix empty result assertion in TestTxSearch
faddat 2fad4e1
Fix duplicate channel creation in
faddat ce39f14
Fix typos and add comments to address book
faddat 0e7e422
Update field names in TestStruct
faddat 9c31352
Fix randGenesisDoc function signature and update
faddat 0ef18e5
Add helper function for counting old and new
faddat 26ef587
Refactor calcOldBucket function in addrbook.go
faddat 81517d8
Fix code formatting and remove unused code
faddat a9fd40e
Fix linter configuration
faddat 34365de
test if this is a ci flake by adding some godoc
faddat ed57549
fix lint issues in ci jobs
faddat d2e4909
add a godoc to fix tests
faddat 3d95a5e
unclog
faddat 2f9d5a2
Merge branch 'main' into faddat/lint-tests
faddat 3a6f929
Update internal/state/state_test.go
faddat b2f3d72
Merge branch 'main' into faddat/lint-tests
faddat fa1e568
re-add reactor test
faddat c4213a2
Update internal/state/state_test.go
faddat ea062fc
revert changes to db.go
faddat 1a4b3f2
disable unparam
faddat 6afbc44
lint
faddat dbc9482
Merge branch 'main' into faddat/lint-tests
faddat 8bc3a81
linter autofix
faddat aefadf5
reduce same issues and same linter significantly
faddat a5631d7
Update .golangci.yml
faddat 5b11e70
Update internal/consensus/state_test.go
faddat 5aef472
Update .golangci.yml
faddat f2a6ebe
Merge branch 'main' into faddat/lint-tests
faddat 2b22e6c
print index
melekes 9e079ca
remove extra err msg
melekes f37177e
print err
melekes 210ae91
print err
melekes efb5a8f
print err
melekes ace8c97
print err
melekes c012376
fix assert
melekes 97f5464
remove extra msg
melekes e8bb42e
remove extra msg
melekes 3e3edae
remove extra Sprintf
melekes 29b9915
remove extra Sprintf
melekes 51195c7
remove needless Sprintf
melekes ca6c713
bring back err msg
melekes ad19a98
Revert "as a piece of Free software, cometbft does NOT need to suppor…
melekes ccf852f
fix remaining errors
melekes 1560560
Merge branch 'main' into faddat/lint-tests
melekes cfbcfdf
remove changelog entry
melekes 72dc42f
fix TestReactorTxSendersLocal
melekes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.