/
EarnHooks.go
38 lines (29 loc) · 1.28 KB
/
EarnHooks.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Code generated by mockery v2.14.0. DO NOT EDIT.
package mocks
import (
types "github.com/cosmos/cosmos-sdk/types"
mock "github.com/stretchr/testify/mock"
)
// EarnHooks is an autogenerated mock type for the EarnHooks type
type EarnHooks struct {
mock.Mock
}
// AfterVaultDepositCreated provides a mock function with given fields: ctx, vaultDenom, depositor, sharesOwned
func (_m *EarnHooks) AfterVaultDepositCreated(ctx types.Context, vaultDenom string, depositor types.AccAddress, sharesOwned types.Dec) {
_m.Called(ctx, vaultDenom, depositor, sharesOwned)
}
// BeforeVaultDepositModified provides a mock function with given fields: ctx, vaultDenom, depositor, sharesOwned
func (_m *EarnHooks) BeforeVaultDepositModified(ctx types.Context, vaultDenom string, depositor types.AccAddress, sharesOwned types.Dec) {
_m.Called(ctx, vaultDenom, depositor, sharesOwned)
}
type mockConstructorTestingTNewEarnHooks interface {
mock.TestingT
Cleanup(func())
}
// NewEarnHooks creates a new instance of EarnHooks. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewEarnHooks(t mockConstructorTestingTNewEarnHooks) *EarnHooks {
mock := &EarnHooks{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}