github.com/lino-network/lino@v0.6.11/x/reputation/mocks/ReputationKeeper.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 amino "github.com/tendermint/go-amino" 8 9 mock "github.com/stretchr/testify/mock" 10 11 types "github.com/cosmos/cosmos-sdk/types" 12 ) 13 14 // ReputationKeeper is an autogenerated mock type for the ReputationKeeper type 15 type ReputationKeeper struct { 16 mock.Mock 17 } 18 19 // DonateAt provides a mock function with given fields: ctx, username, post, amount 20 func (_m *ReputationKeeper) DonateAt(ctx types.Context, username linotypes.AccountKey, post linotypes.Permlink, amount linotypes.MiniDollar) (linotypes.MiniDollar, types.Error) { 21 ret := _m.Called(ctx, username, post, amount) 22 23 var r0 linotypes.MiniDollar 24 if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey, linotypes.Permlink, linotypes.MiniDollar) linotypes.MiniDollar); ok { 25 r0 = rf(ctx, username, post, amount) 26 } else { 27 r0 = ret.Get(0).(linotypes.MiniDollar) 28 } 29 30 var r1 types.Error 31 if rf, ok := ret.Get(1).(func(types.Context, linotypes.AccountKey, linotypes.Permlink, linotypes.MiniDollar) types.Error); ok { 32 r1 = rf(ctx, username, post, amount) 33 } else { 34 if ret.Get(1) != nil { 35 r1 = ret.Get(1).(types.Error) 36 } 37 } 38 39 return r0, r1 40 } 41 42 // ExportToFile provides a mock function with given fields: ctx, cdc, file 43 func (_m *ReputationKeeper) ExportToFile(ctx types.Context, cdc *amino.Codec, file string) error { 44 ret := _m.Called(ctx, cdc, file) 45 46 var r0 error 47 if rf, ok := ret.Get(0).(func(types.Context, *amino.Codec, string) error); ok { 48 r0 = rf(ctx, cdc, file) 49 } else { 50 r0 = ret.Error(0) 51 } 52 53 return r0 54 } 55 56 // GetCurrentRound provides a mock function with given fields: ctx 57 func (_m *ReputationKeeper) GetCurrentRound(ctx types.Context) (int64, types.Error) { 58 ret := _m.Called(ctx) 59 60 var r0 int64 61 if rf, ok := ret.Get(0).(func(types.Context) int64); ok { 62 r0 = rf(ctx) 63 } else { 64 r0 = ret.Get(0).(int64) 65 } 66 67 var r1 types.Error 68 if rf, ok := ret.Get(1).(func(types.Context) types.Error); ok { 69 r1 = rf(ctx) 70 } else { 71 if ret.Get(1) != nil { 72 r1 = ret.Get(1).(types.Error) 73 } 74 } 75 76 return r0, r1 77 } 78 79 // GetReputation provides a mock function with given fields: ctx, username 80 func (_m *ReputationKeeper) GetReputation(ctx types.Context, username linotypes.AccountKey) (linotypes.MiniDollar, types.Error) { 81 ret := _m.Called(ctx, username) 82 83 var r0 linotypes.MiniDollar 84 if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey) linotypes.MiniDollar); ok { 85 r0 = rf(ctx, username) 86 } else { 87 r0 = ret.Get(0).(linotypes.MiniDollar) 88 } 89 90 var r1 types.Error 91 if rf, ok := ret.Get(1).(func(types.Context, linotypes.AccountKey) types.Error); ok { 92 r1 = rf(ctx, username) 93 } else { 94 if ret.Get(1) != nil { 95 r1 = ret.Get(1).(types.Error) 96 } 97 } 98 99 return r0, r1 100 } 101 102 // ImportFromFile provides a mock function with given fields: ctx, cdc, file 103 func (_m *ReputationKeeper) ImportFromFile(ctx types.Context, cdc *amino.Codec, file string) error { 104 ret := _m.Called(ctx, cdc, file) 105 106 var r0 error 107 if rf, ok := ret.Get(0).(func(types.Context, *amino.Codec, string) error); ok { 108 r0 = rf(ctx, cdc, file) 109 } else { 110 r0 = ret.Error(0) 111 } 112 113 return r0 114 } 115 116 // Update provides a mock function with given fields: ctx 117 func (_m *ReputationKeeper) Update(ctx types.Context) types.Error { 118 ret := _m.Called(ctx) 119 120 var r0 types.Error 121 if rf, ok := ret.Get(0).(func(types.Context) types.Error); ok { 122 r0 = rf(ctx) 123 } else { 124 if ret.Get(0) != nil { 125 r0 = ret.Get(0).(types.Error) 126 } 127 } 128 129 return r0 130 }