code.vegaprotocol.io/vega@v0.79.0/core/notary/mocks/commander_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: code.vegaprotocol.io/vega/core/notary (interfaces: Commander)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	txn "code.vegaprotocol.io/vega/core/txn"
    12  	backoff "github.com/cenkalti/backoff"
    13  	gomock "github.com/golang/mock/gomock"
    14  	protoiface "google.golang.org/protobuf/runtime/protoiface"
    15  )
    16  
    17  // MockCommander is a mock of Commander interface.
    18  type MockCommander struct {
    19  	ctrl     *gomock.Controller
    20  	recorder *MockCommanderMockRecorder
    21  }
    22  
    23  // MockCommanderMockRecorder is the mock recorder for MockCommander.
    24  type MockCommanderMockRecorder struct {
    25  	mock *MockCommander
    26  }
    27  
    28  // NewMockCommander creates a new mock instance.
    29  func NewMockCommander(ctrl *gomock.Controller) *MockCommander {
    30  	mock := &MockCommander{ctrl: ctrl}
    31  	mock.recorder = &MockCommanderMockRecorder{mock}
    32  	return mock
    33  }
    34  
    35  // EXPECT returns an object that allows the caller to indicate expected use.
    36  func (m *MockCommander) EXPECT() *MockCommanderMockRecorder {
    37  	return m.recorder
    38  }
    39  
    40  // Command mocks base method.
    41  func (m *MockCommander) Command(arg0 context.Context, arg1 txn.Command, arg2 protoiface.MessageV1, arg3 func(string, error), arg4 *backoff.ExponentialBackOff) {
    42  	m.ctrl.T.Helper()
    43  	m.ctrl.Call(m, "Command", arg0, arg1, arg2, arg3, arg4)
    44  }
    45  
    46  // Command indicates an expected call of Command.
    47  func (mr *MockCommanderMockRecorder) Command(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Command", reflect.TypeOf((*MockCommander)(nil).Command), arg0, arg1, arg2, arg3, arg4)
    50  }
    51  
    52  // CommandSync mocks base method.
    53  func (m *MockCommander) CommandSync(arg0 context.Context, arg1 txn.Command, arg2 protoiface.MessageV1, arg3 func(string, error), arg4 *backoff.ExponentialBackOff) {
    54  	m.ctrl.T.Helper()
    55  	m.ctrl.Call(m, "CommandSync", arg0, arg1, arg2, arg3, arg4)
    56  }
    57  
    58  // CommandSync indicates an expected call of CommandSync.
    59  func (mr *MockCommanderMockRecorder) CommandSync(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
    60  	mr.mock.ctrl.T.Helper()
    61  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommandSync", reflect.TypeOf((*MockCommander)(nil).CommandSync), arg0, arg1, arg2, arg3, arg4)
    62  }