Skip to content

Commit

Permalink
chore: typesafe mocks (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
technicallyty authored Aug 28, 2024
1 parent 57f6661 commit 996e7c3
Show file tree
Hide file tree
Showing 37 changed files with 3,746 additions and 4 deletions.
1 change: 1 addition & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
with-expecter: True
2 changes: 1 addition & 1 deletion abci/preblock/oracle/preblock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func (s *PreBlockTestSuite) TestPreBlocker() {
s.Require().NoError(err)

validator1 := voteweightedmocks.NewValidatorI(s.T())
validator1.On("GetBondedTokens").Return(math.NewInt(1))
validator1.EXPECT().GetBondedTokens().Return(math.NewInt(1))

validator2 := voteweightedmocks.NewValidatorI(s.T())
validator2.On("GetBondedTokens").Return(math.NewInt(1))
Expand Down
65 changes: 65 additions & 0 deletions abci/strategies/aggregator/mocks/mock_price_applier.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 65 additions & 0 deletions abci/strategies/aggregator/mocks/mock_vote_aggregator.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 64 additions & 0 deletions abci/strategies/codec/mocks/extended_commit_codec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 64 additions & 0 deletions abci/strategies/codec/mocks/vote_extension_codec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 996e7c3

Please sign in to comment.