github.com/Finschia/finschia-sdk@v0.48.1/tests/mocks/account_retriever.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: client/account_retriever.go
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	client "github.com/Finschia/finschia-sdk/client"
    12  	types "github.com/Finschia/finschia-sdk/crypto/types"
    13  	types0 "github.com/Finschia/finschia-sdk/types"
    14  )
    15  
    16  // MockAccount is a mock of Account interface.
    17  type MockAccount struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockAccountMockRecorder
    20  }
    21  
    22  // MockAccountMockRecorder is the mock recorder for MockAccount.
    23  type MockAccountMockRecorder struct {
    24  	mock *MockAccount
    25  }
    26  
    27  // NewMockAccount creates a new mock instance.
    28  func NewMockAccount(ctrl *gomock.Controller) *MockAccount {
    29  	mock := &MockAccount{ctrl: ctrl}
    30  	mock.recorder = &MockAccountMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockAccount) EXPECT() *MockAccountMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // GetAccountNumber mocks base method.
    40  func (m *MockAccount) GetAccountNumber() uint64 {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "GetAccountNumber")
    43  	ret0, _ := ret[0].(uint64)
    44  	return ret0
    45  }
    46  
    47  // GetAccountNumber indicates an expected call of GetAccountNumber.
    48  func (mr *MockAccountMockRecorder) GetAccountNumber() *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountNumber", reflect.TypeOf((*MockAccount)(nil).GetAccountNumber))
    51  }
    52  
    53  // GetAddress mocks base method.
    54  func (m *MockAccount) GetAddress() types0.AccAddress {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "GetAddress")
    57  	ret0, _ := ret[0].(types0.AccAddress)
    58  	return ret0
    59  }
    60  
    61  // GetAddress indicates an expected call of GetAddress.
    62  func (mr *MockAccountMockRecorder) GetAddress() *gomock.Call {
    63  	mr.mock.ctrl.T.Helper()
    64  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAddress", reflect.TypeOf((*MockAccount)(nil).GetAddress))
    65  }
    66  
    67  // GetPubKey mocks base method.
    68  func (m *MockAccount) GetPubKey() types.PubKey {
    69  	m.ctrl.T.Helper()
    70  	ret := m.ctrl.Call(m, "GetPubKey")
    71  	ret0, _ := ret[0].(types.PubKey)
    72  	return ret0
    73  }
    74  
    75  // GetPubKey indicates an expected call of GetPubKey.
    76  func (mr *MockAccountMockRecorder) GetPubKey() *gomock.Call {
    77  	mr.mock.ctrl.T.Helper()
    78  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPubKey", reflect.TypeOf((*MockAccount)(nil).GetPubKey))
    79  }
    80  
    81  // GetSequence mocks base method.
    82  func (m *MockAccount) GetSequence() uint64 {
    83  	m.ctrl.T.Helper()
    84  	ret := m.ctrl.Call(m, "GetSequence")
    85  	ret0, _ := ret[0].(uint64)
    86  	return ret0
    87  }
    88  
    89  // GetSequence indicates an expected call of GetSequence.
    90  func (mr *MockAccountMockRecorder) GetSequence() *gomock.Call {
    91  	mr.mock.ctrl.T.Helper()
    92  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSequence", reflect.TypeOf((*MockAccount)(nil).GetSequence))
    93  }
    94  
    95  // MockAccountRetriever is a mock of AccountRetriever interface.
    96  type MockAccountRetriever struct {
    97  	ctrl     *gomock.Controller
    98  	recorder *MockAccountRetrieverMockRecorder
    99  }
   100  
   101  // MockAccountRetrieverMockRecorder is the mock recorder for MockAccountRetriever.
   102  type MockAccountRetrieverMockRecorder struct {
   103  	mock *MockAccountRetriever
   104  }
   105  
   106  // NewMockAccountRetriever creates a new mock instance.
   107  func NewMockAccountRetriever(ctrl *gomock.Controller) *MockAccountRetriever {
   108  	mock := &MockAccountRetriever{ctrl: ctrl}
   109  	mock.recorder = &MockAccountRetrieverMockRecorder{mock}
   110  	return mock
   111  }
   112  
   113  // EXPECT returns an object that allows the caller to indicate expected use.
   114  func (m *MockAccountRetriever) EXPECT() *MockAccountRetrieverMockRecorder {
   115  	return m.recorder
   116  }
   117  
   118  // EnsureExists mocks base method.
   119  func (m *MockAccountRetriever) EnsureExists(clientCtx client.Context, addr types0.AccAddress) error {
   120  	m.ctrl.T.Helper()
   121  	ret := m.ctrl.Call(m, "EnsureExists", clientCtx, addr)
   122  	ret0, _ := ret[0].(error)
   123  	return ret0
   124  }
   125  
   126  // EnsureExists indicates an expected call of EnsureExists.
   127  func (mr *MockAccountRetrieverMockRecorder) EnsureExists(clientCtx, addr interface{}) *gomock.Call {
   128  	mr.mock.ctrl.T.Helper()
   129  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnsureExists", reflect.TypeOf((*MockAccountRetriever)(nil).EnsureExists), clientCtx, addr)
   130  }
   131  
   132  // GetAccount mocks base method.
   133  func (m *MockAccountRetriever) GetAccount(clientCtx client.Context, addr types0.AccAddress) (client.Account, error) {
   134  	m.ctrl.T.Helper()
   135  	ret := m.ctrl.Call(m, "GetAccount", clientCtx, addr)
   136  	ret0, _ := ret[0].(client.Account)
   137  	ret1, _ := ret[1].(error)
   138  	return ret0, ret1
   139  }
   140  
   141  // GetAccount indicates an expected call of GetAccount.
   142  func (mr *MockAccountRetrieverMockRecorder) GetAccount(clientCtx, addr interface{}) *gomock.Call {
   143  	mr.mock.ctrl.T.Helper()
   144  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccount", reflect.TypeOf((*MockAccountRetriever)(nil).GetAccount), clientCtx, addr)
   145  }
   146  
   147  // GetAccountNumberSequence mocks base method.
   148  func (m *MockAccountRetriever) GetAccountNumberSequence(clientCtx client.Context, addr types0.AccAddress) (uint64, uint64, error) {
   149  	m.ctrl.T.Helper()
   150  	ret := m.ctrl.Call(m, "GetAccountNumberSequence", clientCtx, addr)
   151  	ret0, _ := ret[0].(uint64)
   152  	ret1, _ := ret[1].(uint64)
   153  	ret2, _ := ret[2].(error)
   154  	return ret0, ret1, ret2
   155  }
   156  
   157  // GetAccountNumberSequence indicates an expected call of GetAccountNumberSequence.
   158  func (mr *MockAccountRetrieverMockRecorder) GetAccountNumberSequence(clientCtx, addr interface{}) *gomock.Call {
   159  	mr.mock.ctrl.T.Helper()
   160  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountNumberSequence", reflect.TypeOf((*MockAccountRetriever)(nil).GetAccountNumberSequence), clientCtx, addr)
   161  }
   162  
   163  // GetAccountWithHeight mocks base method.
   164  func (m *MockAccountRetriever) GetAccountWithHeight(clientCtx client.Context, addr types0.AccAddress) (client.Account, int64, error) {
   165  	m.ctrl.T.Helper()
   166  	ret := m.ctrl.Call(m, "GetAccountWithHeight", clientCtx, addr)
   167  	ret0, _ := ret[0].(client.Account)
   168  	ret1, _ := ret[1].(int64)
   169  	ret2, _ := ret[2].(error)
   170  	return ret0, ret1, ret2
   171  }
   172  
   173  // GetAccountWithHeight indicates an expected call of GetAccountWithHeight.
   174  func (mr *MockAccountRetrieverMockRecorder) GetAccountWithHeight(clientCtx, addr interface{}) *gomock.Call {
   175  	mr.mock.ctrl.T.Helper()
   176  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountWithHeight", reflect.TypeOf((*MockAccountRetriever)(nil).GetAccountWithHeight), clientCtx, addr)
   177  }