github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/service/snap/runnable_mock_test.go (about)

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