github.com/igggame/nebulas-go@v2.1.0+incompatible/rpc/mock_pb/mock_pb.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/nebulasio/go-nebulas/rpc/pb (interfaces: APIServiceClient) 3 4 // Package mock_pb is a generated GoMock package. 5 package mock_pb 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 pb "github.com/nebulasio/go-nebulas/rpc/pb" 13 grpc "google.golang.org/grpc" 14 ) 15 16 // MockAPIServiceClient is a mock of APIServiceClient interface 17 type MockAPIServiceClient struct { 18 ctrl *gomock.Controller 19 recorder *MockAPIServiceClientMockRecorder 20 } 21 22 // MockAPIServiceClientMockRecorder is the mock recorder for MockAPIServiceClient 23 type MockAPIServiceClientMockRecorder struct { 24 mock *MockAPIServiceClient 25 } 26 27 // NewMockAPIServiceClient creates a new mock instance 28 func NewMockAPIServiceClient(ctrl *gomock.Controller) *MockAPIServiceClient { 29 mock := &MockAPIServiceClient{ctrl: ctrl} 30 mock.recorder = &MockAPIServiceClientMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use 35 func (m *MockAPIServiceClient) EXPECT() *MockAPIServiceClientMockRecorder { 36 return m.recorder 37 } 38 39 // GetNebState mocks base method 40 func (m *MockAPIServiceClient) GetNebState(arg0 context.Context, arg1 *pb.NonParamsRequest, arg2 ...grpc.CallOption) (*pb.GetNebStateResponse, error) { 41 varargs := []interface{}{arg0, arg1} 42 for _, a := range arg2 { 43 varargs = append(varargs, a) 44 } 45 ret := m.ctrl.Call(m, "GetNebState", varargs...) 46 ret0, _ := ret[0].(*pb.GetNebStateResponse) 47 ret1, _ := ret[1].(error) 48 return ret0, ret1 49 } 50 51 // GetNebState indicates an expected call of GetNebState 52 func (mr *MockAPIServiceClientMockRecorder) GetNebState(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 53 varargs := append([]interface{}{arg0, arg1}, arg2...) 54 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNebState", reflect.TypeOf((*MockAPIServiceClient)(nil).GetNebState), varargs...) 55 } 56 57 // GetAccountState mocks base method 58 func (m *MockAPIServiceClient) GetAccountState(arg0 context.Context, arg1 *pb.GetAccountStateRequest, arg2 ...grpc.CallOption) (*pb.GetAccountStateResponse, error) { 59 varargs := []interface{}{arg0, arg1} 60 for _, a := range arg2 { 61 varargs = append(varargs, a) 62 } 63 ret := m.ctrl.Call(m, "GetAccountState", varargs...) 64 ret0, _ := ret[0].(*pb.GetAccountStateResponse) 65 ret1, _ := ret[1].(error) 66 return ret0, ret1 67 } 68 69 // GetAccountState indicates an expected call of GetAccountState 70 func (mr *MockAPIServiceClientMockRecorder) GetAccountState(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 71 varargs := append([]interface{}{arg0, arg1}, arg2...) 72 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountState", reflect.TypeOf((*MockAPIServiceClient)(nil).GetAccountState), varargs...) 73 } 74 75 // SendTransaction mocks base method 76 func (m *MockAPIServiceClient) SendTransaction(arg0 context.Context, arg1 *pb.TransactionRequest, arg2 ...grpc.CallOption) (*pb.SendTransactionResponse, error) { 77 varargs := []interface{}{arg0, arg1} 78 for _, a := range arg2 { 79 varargs = append(varargs, a) 80 } 81 ret := m.ctrl.Call(m, "SendTransaction", varargs...) 82 ret0, _ := ret[0].(*pb.SendTransactionResponse) 83 ret1, _ := ret[1].(error) 84 return ret0, ret1 85 } 86 87 // SendTransaction indicates an expected call of SendTransaction 88 func (mr *MockAPIServiceClientMockRecorder) SendTransaction(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 89 varargs := append([]interface{}{arg0, arg1}, arg2...) 90 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendTransaction", reflect.TypeOf((*MockAPIServiceClient)(nil).SendTransaction), varargs...) 91 }