-
Notifications
You must be signed in to change notification settings - Fork 8
/
mock_account_keeper.go
79 lines (62 loc) · 1.96 KB
/
mock_account_keeper.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
package mocks
import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
mock "github.com/stretchr/testify/mock"
types "github.com/cosmos/cosmos-sdk/types"
)
// AccountKeeper is an autogenerated mock type for the AccountKeeper type
type AccountKeeper struct {
mock.Mock
}
// GetAccount provides a mock function with given fields: ctx, addr
func (_m *AccountKeeper) GetAccount(ctx types.Context, addr types.AccAddress) authtypes.AccountI {
ret := _m.Called(ctx, addr)
var r0 authtypes.AccountI
if rf, ok := ret.Get(0).(func(types.Context, types.AccAddress) authtypes.AccountI); ok {
r0 = rf(ctx, addr)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(authtypes.AccountI)
}
}
return r0
}
// GetModuleAccount provides a mock function with given fields: ctx, name
func (_m *AccountKeeper) GetModuleAccount(ctx types.Context, name string) authtypes.ModuleAccountI {
ret := _m.Called(ctx, name)
var r0 authtypes.ModuleAccountI
if rf, ok := ret.Get(0).(func(types.Context, string) authtypes.ModuleAccountI); ok {
r0 = rf(ctx, name)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(authtypes.ModuleAccountI)
}
}
return r0
}
// GetModuleAddress provides a mock function with given fields: name
func (_m *AccountKeeper) GetModuleAddress(name string) types.AccAddress {
ret := _m.Called(name)
var r0 types.AccAddress
if rf, ok := ret.Get(0).(func(string) types.AccAddress); ok {
r0 = rf(name)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(types.AccAddress)
}
}
return r0
}
// NewAccountKeeper creates a new instance of AccountKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewAccountKeeper(t interface {
mock.TestingT
Cleanup(func())
},
) *AccountKeeper {
mock := &AccountKeeper{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}