github.com/letsencrypt/trillian@v1.1.2-0.20180615153820-ae375a99d36a/server/mock_log_operation.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/google/trillian/server (interfaces: LogOperation)
     3  
     4  // Package server is a generated GoMock package.
     5  package server
     6  
     7  import (
     8  	context "context"
     9  	gomock "github.com/golang/mock/gomock"
    10  	reflect "reflect"
    11  )
    12  
    13  // MockLogOperation is a mock of LogOperation interface
    14  type MockLogOperation struct {
    15  	ctrl     *gomock.Controller
    16  	recorder *MockLogOperationMockRecorder
    17  }
    18  
    19  // MockLogOperationMockRecorder is the mock recorder for MockLogOperation
    20  type MockLogOperationMockRecorder struct {
    21  	mock *MockLogOperation
    22  }
    23  
    24  // NewMockLogOperation creates a new mock instance
    25  func NewMockLogOperation(ctrl *gomock.Controller) *MockLogOperation {
    26  	mock := &MockLogOperation{ctrl: ctrl}
    27  	mock.recorder = &MockLogOperationMockRecorder{mock}
    28  	return mock
    29  }
    30  
    31  // EXPECT returns an object that allows the caller to indicate expected use
    32  func (m *MockLogOperation) EXPECT() *MockLogOperationMockRecorder {
    33  	return m.recorder
    34  }
    35  
    36  // ExecutePass mocks base method
    37  func (m *MockLogOperation) ExecutePass(arg0 context.Context, arg1 int64, arg2 *LogOperationInfo) (int, error) {
    38  	ret := m.ctrl.Call(m, "ExecutePass", arg0, arg1, arg2)
    39  	ret0, _ := ret[0].(int)
    40  	ret1, _ := ret[1].(error)
    41  	return ret0, ret1
    42  }
    43  
    44  // ExecutePass indicates an expected call of ExecutePass
    45  func (mr *MockLogOperationMockRecorder) ExecutePass(arg0, arg1, arg2 interface{}) *gomock.Call {
    46  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecutePass", reflect.TypeOf((*MockLogOperation)(nil).ExecutePass), arg0, arg1, arg2)
    47  }
    48  
    49  // Name mocks base method
    50  func (m *MockLogOperation) Name() string {
    51  	ret := m.ctrl.Call(m, "Name")
    52  	ret0, _ := ret[0].(string)
    53  	return ret0
    54  }
    55  
    56  // Name indicates an expected call of Name
    57  func (mr *MockLogOperationMockRecorder) Name() *gomock.Call {
    58  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockLogOperation)(nil).Name))
    59  }