/
ProcessStakingKeeper.go
52 lines (39 loc) · 1.46 KB
/
ProcessStakingKeeper.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
// Code generated by mockery v2.14.0. DO NOT EDIT.
package mocks
import (
mock "github.com/stretchr/testify/mock"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
types "github.com/cosmos/cosmos-sdk/types"
)
// ProcessStakingKeeper is an autogenerated mock type for the ProcessStakingKeeper type
type ProcessStakingKeeper struct {
mock.Mock
}
// GetValidatorByConsAddr provides a mock function with given fields: ctx, consAddr
func (_m *ProcessStakingKeeper) GetValidatorByConsAddr(ctx types.Context, consAddr types.ConsAddress) (stakingtypes.Validator, bool) {
ret := _m.Called(ctx, consAddr)
var r0 stakingtypes.Validator
if rf, ok := ret.Get(0).(func(types.Context, types.ConsAddress) stakingtypes.Validator); ok {
r0 = rf(ctx, consAddr)
} else {
r0 = ret.Get(0).(stakingtypes.Validator)
}
var r1 bool
if rf, ok := ret.Get(1).(func(types.Context, types.ConsAddress) bool); ok {
r1 = rf(ctx, consAddr)
} else {
r1 = ret.Get(1).(bool)
}
return r0, r1
}
type mockConstructorTestingTNewProcessStakingKeeper interface {
mock.TestingT
Cleanup(func())
}
// NewProcessStakingKeeper creates a new instance of ProcessStakingKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewProcessStakingKeeper(t mockConstructorTestingTNewProcessStakingKeeper) *ProcessStakingKeeper {
mock := &ProcessStakingKeeper{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}