github.com/juju/juju@v0.0.0-20240327075706-a90865de2538/worker/instancemutater/mocks/dependency_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/worker/v3/dependency (interfaces: Context)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package mocks -destination mocks/dependency_mock.go github.com/juju/worker/v3/dependency Context
     7  //
     8  
     9  // Package mocks is a generated GoMock package.
    10  package mocks
    11  
    12  import (
    13  	reflect "reflect"
    14  
    15  	gomock "go.uber.org/mock/gomock"
    16  )
    17  
    18  // MockContext is a mock of Context interface.
    19  type MockContext struct {
    20  	ctrl     *gomock.Controller
    21  	recorder *MockContextMockRecorder
    22  }
    23  
    24  // MockContextMockRecorder is the mock recorder for MockContext.
    25  type MockContextMockRecorder struct {
    26  	mock *MockContext
    27  }
    28  
    29  // NewMockContext creates a new mock instance.
    30  func NewMockContext(ctrl *gomock.Controller) *MockContext {
    31  	mock := &MockContext{ctrl: ctrl}
    32  	mock.recorder = &MockContextMockRecorder{mock}
    33  	return mock
    34  }
    35  
    36  // EXPECT returns an object that allows the caller to indicate expected use.
    37  func (m *MockContext) EXPECT() *MockContextMockRecorder {
    38  	return m.recorder
    39  }
    40  
    41  // Abort mocks base method.
    42  func (m *MockContext) Abort() <-chan struct{} {
    43  	m.ctrl.T.Helper()
    44  	ret := m.ctrl.Call(m, "Abort")
    45  	ret0, _ := ret[0].(<-chan struct{})
    46  	return ret0
    47  }
    48  
    49  // Abort indicates an expected call of Abort.
    50  func (mr *MockContextMockRecorder) Abort() *gomock.Call {
    51  	mr.mock.ctrl.T.Helper()
    52  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Abort", reflect.TypeOf((*MockContext)(nil).Abort))
    53  }
    54  
    55  // Get mocks base method.
    56  func (m *MockContext) Get(arg0 string, arg1 any) error {
    57  	m.ctrl.T.Helper()
    58  	ret := m.ctrl.Call(m, "Get", arg0, arg1)
    59  	ret0, _ := ret[0].(error)
    60  	return ret0
    61  }
    62  
    63  // Get indicates an expected call of Get.
    64  func (mr *MockContextMockRecorder) Get(arg0, arg1 any) *gomock.Call {
    65  	mr.mock.ctrl.T.Helper()
    66  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockContext)(nil).Get), arg0, arg1)
    67  }