Skip to content

Commit

Permalink
Generate mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanTinianov committed Jan 21, 2025
1 parent b2fec74 commit 7d2049f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
47 changes: 47 additions & 0 deletions multinode/mock_head_test.go

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

1 change: 1 addition & 0 deletions multinode/node_lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ func (h head) ToMockHead(t *testing.T) *mockHead {
m := newMockHead(t)
m.On("BlockNumber").Return(h.BlockNumber).Maybe()
m.On("BlockDifficulty").Return(h.BlockDifficulty).Maybe()
m.On("GetTotalDifficulty").Return(h.BlockDifficulty).Maybe()
m.On("IsValid").Return(true).Maybe()
return m
}
Expand Down

0 comments on commit 7d2049f

Please sign in to comment.