github.com/lino-network/lino@v0.6.11/x/vote/manager/mocks/StakingHooks.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 linotypes "github.com/lino-network/lino/types" 7 8 mock "github.com/stretchr/testify/mock" 9 10 types "github.com/cosmos/cosmos-sdk/types" 11 ) 12 13 // StakingHooks is an autogenerated mock type for the StakingHooks type 14 type StakingHooks struct { 15 mock.Mock 16 } 17 18 // AfterAddingStake provides a mock function with given fields: ctx, username 19 func (_m *StakingHooks) AfterAddingStake(ctx types.Context, username linotypes.AccountKey) types.Error { 20 ret := _m.Called(ctx, username) 21 22 var r0 types.Error 23 if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey) types.Error); ok { 24 r0 = rf(ctx, username) 25 } else { 26 if ret.Get(0) != nil { 27 r0 = ret.Get(0).(types.Error) 28 } 29 } 30 31 return r0 32 } 33 34 // AfterSlashing provides a mock function with given fields: ctx, username 35 func (_m *StakingHooks) AfterSlashing(ctx types.Context, username linotypes.AccountKey) types.Error { 36 ret := _m.Called(ctx, username) 37 38 var r0 types.Error 39 if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey) types.Error); ok { 40 r0 = rf(ctx, username) 41 } else { 42 if ret.Get(0) != nil { 43 r0 = ret.Get(0).(types.Error) 44 } 45 } 46 47 return r0 48 } 49 50 // AfterSubtractingStake provides a mock function with given fields: ctx, username 51 func (_m *StakingHooks) AfterSubtractingStake(ctx types.Context, username linotypes.AccountKey) types.Error { 52 ret := _m.Called(ctx, username) 53 54 var r0 types.Error 55 if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey) types.Error); ok { 56 r0 = rf(ctx, username) 57 } else { 58 if ret.Get(0) != nil { 59 r0 = ret.Get(0).(types.Error) 60 } 61 } 62 63 return r0 64 }