github.com/lino-network/lino@v0.6.11/x/global/mocks/GlobalKeeper.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 amino "github.com/tendermint/go-amino" 7 8 linotypes "github.com/lino-network/lino/types" 9 10 mock "github.com/stretchr/testify/mock" 11 12 model "github.com/lino-network/lino/x/global/model" 13 14 types "github.com/cosmos/cosmos-sdk/types" 15 ) 16 17 // GlobalKeeper is an autogenerated mock type for the GlobalKeeper type 18 type GlobalKeeper struct { 19 mock.Mock 20 } 21 22 // ExecuteEvents provides a mock function with given fields: ctx, exec 23 func (_m *GlobalKeeper) ExecuteEvents(ctx types.Context, exec func(types.Context, linotypes.Event) types.Error) { 24 _m.Called(ctx, exec) 25 } 26 27 // ExportToFile provides a mock function with given fields: ctx, cdc, filepath 28 func (_m *GlobalKeeper) ExportToFile(ctx types.Context, cdc *amino.Codec, filepath string) error { 29 ret := _m.Called(ctx, cdc, filepath) 30 31 var r0 error 32 if rf, ok := ret.Get(0).(func(types.Context, *amino.Codec, string) error); ok { 33 r0 = rf(ctx, cdc, filepath) 34 } else { 35 r0 = ret.Error(0) 36 } 37 38 return r0 39 } 40 41 // GetBCEventErrors provides a mock function with given fields: ctx 42 func (_m *GlobalKeeper) GetBCEventErrors(ctx types.Context) []linotypes.BCEventErr { 43 ret := _m.Called(ctx) 44 45 var r0 []linotypes.BCEventErr 46 if rf, ok := ret.Get(0).(func(types.Context) []linotypes.BCEventErr); ok { 47 r0 = rf(ctx) 48 } else { 49 if ret.Get(0) != nil { 50 r0 = ret.Get(0).([]linotypes.BCEventErr) 51 } 52 } 53 54 return r0 55 } 56 57 // GetEventErrors provides a mock function with given fields: ctx 58 func (_m *GlobalKeeper) GetEventErrors(ctx types.Context) []linotypes.EventError { 59 ret := _m.Called(ctx) 60 61 var r0 []linotypes.EventError 62 if rf, ok := ret.Get(0).(func(types.Context) []linotypes.EventError); ok { 63 r0 = rf(ctx) 64 } else { 65 if ret.Get(0) != nil { 66 r0 = ret.Get(0).([]linotypes.EventError) 67 } 68 } 69 70 return r0 71 } 72 73 // GetGlobalTime provides a mock function with given fields: ctx 74 func (_m *GlobalKeeper) GetGlobalTime(ctx types.Context) model.GlobalTime { 75 ret := _m.Called(ctx) 76 77 var r0 model.GlobalTime 78 if rf, ok := ret.Get(0).(func(types.Context) model.GlobalTime); ok { 79 r0 = rf(ctx) 80 } else { 81 r0 = ret.Get(0).(model.GlobalTime) 82 } 83 84 return r0 85 } 86 87 // GetLastBlockTime provides a mock function with given fields: ctx 88 func (_m *GlobalKeeper) GetLastBlockTime(ctx types.Context) int64 { 89 ret := _m.Called(ctx) 90 91 var r0 int64 92 if rf, ok := ret.Get(0).(func(types.Context) int64); ok { 93 r0 = rf(ctx) 94 } else { 95 r0 = ret.Get(0).(int64) 96 } 97 98 return r0 99 } 100 101 // GetPastDay provides a mock function with given fields: ctx, unixTime 102 func (_m *GlobalKeeper) GetPastDay(ctx types.Context, unixTime int64) int64 { 103 ret := _m.Called(ctx, unixTime) 104 105 var r0 int64 106 if rf, ok := ret.Get(0).(func(types.Context, int64) int64); ok { 107 r0 = rf(ctx, unixTime) 108 } else { 109 r0 = ret.Get(0).(int64) 110 } 111 112 return r0 113 } 114 115 // ImportFromFile provides a mock function with given fields: ctx, cdc, filepath 116 func (_m *GlobalKeeper) ImportFromFile(ctx types.Context, cdc *amino.Codec, filepath string) error { 117 ret := _m.Called(ctx, cdc, filepath) 118 119 var r0 error 120 if rf, ok := ret.Get(0).(func(types.Context, *amino.Codec, string) error); ok { 121 r0 = rf(ctx, cdc, filepath) 122 } else { 123 r0 = ret.Error(0) 124 } 125 126 return r0 127 } 128 129 // InitGenesis provides a mock function with given fields: ctx 130 func (_m *GlobalKeeper) InitGenesis(ctx types.Context) { 131 _m.Called(ctx) 132 } 133 134 // OnBeginBlock provides a mock function with given fields: ctx 135 func (_m *GlobalKeeper) OnBeginBlock(ctx types.Context) { 136 _m.Called(ctx) 137 } 138 139 // OnEndBlock provides a mock function with given fields: ctx 140 func (_m *GlobalKeeper) OnEndBlock(ctx types.Context) { 141 _m.Called(ctx) 142 } 143 144 // RegisterEventAtTime provides a mock function with given fields: ctx, unixTime, event 145 func (_m *GlobalKeeper) RegisterEventAtTime(ctx types.Context, unixTime int64, event linotypes.Event) types.Error { 146 ret := _m.Called(ctx, unixTime, event) 147 148 var r0 types.Error 149 if rf, ok := ret.Get(0).(func(types.Context, int64, linotypes.Event) types.Error); ok { 150 r0 = rf(ctx, unixTime, event) 151 } else { 152 if ret.Get(0) != nil { 153 r0 = ret.Get(0).(types.Error) 154 } 155 } 156 157 return r0 158 }