github.com/uber/kraken@v0.1.4/mocks/lib/persistedretry/task.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/uber/kraken/lib/persistedretry (interfaces: Task)
     3  
     4  // Package mockpersistedretry is a generated GoMock package.
     5  package mockpersistedretry
     6  
     7  import (
     8  	gomock "github.com/golang/mock/gomock"
     9  	reflect "reflect"
    10  	time "time"
    11  )
    12  
    13  // MockTask is a mock of Task interface
    14  type MockTask struct {
    15  	ctrl     *gomock.Controller
    16  	recorder *MockTaskMockRecorder
    17  }
    18  
    19  // MockTaskMockRecorder is the mock recorder for MockTask
    20  type MockTaskMockRecorder struct {
    21  	mock *MockTask
    22  }
    23  
    24  // NewMockTask creates a new mock instance
    25  func NewMockTask(ctrl *gomock.Controller) *MockTask {
    26  	mock := &MockTask{ctrl: ctrl}
    27  	mock.recorder = &MockTaskMockRecorder{mock}
    28  	return mock
    29  }
    30  
    31  // EXPECT returns an object that allows the caller to indicate expected use
    32  func (m *MockTask) EXPECT() *MockTaskMockRecorder {
    33  	return m.recorder
    34  }
    35  
    36  // GetFailures mocks base method
    37  func (m *MockTask) GetFailures() int {
    38  	m.ctrl.T.Helper()
    39  	ret := m.ctrl.Call(m, "GetFailures")
    40  	ret0, _ := ret[0].(int)
    41  	return ret0
    42  }
    43  
    44  // GetFailures indicates an expected call of GetFailures
    45  func (mr *MockTaskMockRecorder) GetFailures() *gomock.Call {
    46  	mr.mock.ctrl.T.Helper()
    47  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFailures", reflect.TypeOf((*MockTask)(nil).GetFailures))
    48  }
    49  
    50  // GetLastAttempt mocks base method
    51  func (m *MockTask) GetLastAttempt() time.Time {
    52  	m.ctrl.T.Helper()
    53  	ret := m.ctrl.Call(m, "GetLastAttempt")
    54  	ret0, _ := ret[0].(time.Time)
    55  	return ret0
    56  }
    57  
    58  // GetLastAttempt indicates an expected call of GetLastAttempt
    59  func (mr *MockTaskMockRecorder) GetLastAttempt() *gomock.Call {
    60  	mr.mock.ctrl.T.Helper()
    61  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLastAttempt", reflect.TypeOf((*MockTask)(nil).GetLastAttempt))
    62  }
    63  
    64  // Ready mocks base method
    65  func (m *MockTask) Ready() bool {
    66  	m.ctrl.T.Helper()
    67  	ret := m.ctrl.Call(m, "Ready")
    68  	ret0, _ := ret[0].(bool)
    69  	return ret0
    70  }
    71  
    72  // Ready indicates an expected call of Ready
    73  func (mr *MockTaskMockRecorder) Ready() *gomock.Call {
    74  	mr.mock.ctrl.T.Helper()
    75  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ready", reflect.TypeOf((*MockTask)(nil).Ready))
    76  }
    77  
    78  // Tags mocks base method
    79  func (m *MockTask) Tags() map[string]string {
    80  	m.ctrl.T.Helper()
    81  	ret := m.ctrl.Call(m, "Tags")
    82  	ret0, _ := ret[0].(map[string]string)
    83  	return ret0
    84  }
    85  
    86  // Tags indicates an expected call of Tags
    87  func (mr *MockTaskMockRecorder) Tags() *gomock.Call {
    88  	mr.mock.ctrl.T.Helper()
    89  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tags", reflect.TypeOf((*MockTask)(nil).Tags))
    90  }