github.com/MetalBlockchain/metalgo@v1.11.9/x/sync/mock_client.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/MetalBlockchain/metalgo/x/sync (interfaces: Client)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package=sync -destination=x/sync/mock_client.go github.com/MetalBlockchain/metalgo/x/sync Client
     7  //
     8  
     9  // Package sync is a generated GoMock package.
    10  package sync
    11  
    12  import (
    13  	context "context"
    14  	reflect "reflect"
    15  
    16  	sync "github.com/MetalBlockchain/metalgo/proto/pb/sync"
    17  	merkledb "github.com/MetalBlockchain/metalgo/x/merkledb"
    18  	gomock "go.uber.org/mock/gomock"
    19  )
    20  
    21  // MockClient is a mock of Client interface.
    22  type MockClient struct {
    23  	ctrl     *gomock.Controller
    24  	recorder *MockClientMockRecorder
    25  }
    26  
    27  // MockClientMockRecorder is the mock recorder for MockClient.
    28  type MockClientMockRecorder struct {
    29  	mock *MockClient
    30  }
    31  
    32  // NewMockClient creates a new mock instance.
    33  func NewMockClient(ctrl *gomock.Controller) *MockClient {
    34  	mock := &MockClient{ctrl: ctrl}
    35  	mock.recorder = &MockClientMockRecorder{mock}
    36  	return mock
    37  }
    38  
    39  // EXPECT returns an object that allows the caller to indicate expected use.
    40  func (m *MockClient) EXPECT() *MockClientMockRecorder {
    41  	return m.recorder
    42  }
    43  
    44  // GetChangeProof mocks base method.
    45  func (m *MockClient) GetChangeProof(arg0 context.Context, arg1 *sync.SyncGetChangeProofRequest, arg2 DB) (*merkledb.ChangeOrRangeProof, error) {
    46  	m.ctrl.T.Helper()
    47  	ret := m.ctrl.Call(m, "GetChangeProof", arg0, arg1, arg2)
    48  	ret0, _ := ret[0].(*merkledb.ChangeOrRangeProof)
    49  	ret1, _ := ret[1].(error)
    50  	return ret0, ret1
    51  }
    52  
    53  // GetChangeProof indicates an expected call of GetChangeProof.
    54  func (mr *MockClientMockRecorder) GetChangeProof(arg0, arg1, arg2 any) *gomock.Call {
    55  	mr.mock.ctrl.T.Helper()
    56  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChangeProof", reflect.TypeOf((*MockClient)(nil).GetChangeProof), arg0, arg1, arg2)
    57  }
    58  
    59  // GetRangeProof mocks base method.
    60  func (m *MockClient) GetRangeProof(arg0 context.Context, arg1 *sync.SyncGetRangeProofRequest) (*merkledb.RangeProof, error) {
    61  	m.ctrl.T.Helper()
    62  	ret := m.ctrl.Call(m, "GetRangeProof", arg0, arg1)
    63  	ret0, _ := ret[0].(*merkledb.RangeProof)
    64  	ret1, _ := ret[1].(error)
    65  	return ret0, ret1
    66  }
    67  
    68  // GetRangeProof indicates an expected call of GetRangeProof.
    69  func (mr *MockClientMockRecorder) GetRangeProof(arg0, arg1 any) *gomock.Call {
    70  	mr.mock.ctrl.T.Helper()
    71  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRangeProof", reflect.TypeOf((*MockClient)(nil).GetRangeProof), arg0, arg1)
    72  }