...

Source file src/edge-infra.dev/pkg/sds/lib/dbus/systemd/mocks/starter.go

Documentation: edge-infra.dev/pkg/sds/lib/dbus/systemd/mocks

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: edge-infra.dev/pkg/sds/lib/dbus/systemd (interfaces: Starter)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	systemd "edge-infra.dev/pkg/sds/lib/dbus/systemd"
    12  	dbus "github.com/coreos/go-systemd/v22/dbus"
    13  	gomock "github.com/golang/mock/gomock"
    14  )
    15  
    16  // MockStarter is a mock of Starter interface.
    17  type MockStarter struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockStarterMockRecorder
    20  }
    21  
    22  // MockStarterMockRecorder is the mock recorder for MockStarter.
    23  type MockStarterMockRecorder struct {
    24  	mock *MockStarter
    25  }
    26  
    27  // NewMockStarter creates a new mock instance.
    28  func NewMockStarter(ctrl *gomock.Controller) *MockStarter {
    29  	mock := &MockStarter{ctrl: ctrl}
    30  	mock.recorder = &MockStarterMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockStarter) EXPECT() *MockStarterMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // Start mocks base method.
    40  func (m *MockStarter) Start(arg0 context.Context, arg1 string, arg2 systemd.Mode, arg3 bool) error {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "Start", arg0, arg1, arg2, arg3)
    43  	ret0, _ := ret[0].(error)
    44  	return ret0
    45  }
    46  
    47  // Start indicates an expected call of Start.
    48  func (mr *MockStarterMockRecorder) Start(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockStarter)(nil).Start), arg0, arg1, arg2, arg3)
    51  }
    52  
    53  // StartTransient mocks base method.
    54  func (m *MockStarter) StartTransient(arg0 context.Context, arg1 string, arg2 systemd.Mode, arg3 []dbus.Property, arg4 bool) error {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "StartTransient", arg0, arg1, arg2, arg3, arg4)
    57  	ret0, _ := ret[0].(error)
    58  	return ret0
    59  }
    60  
    61  // StartTransient indicates an expected call of StartTransient.
    62  func (mr *MockStarterMockRecorder) StartTransient(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
    63  	mr.mock.ctrl.T.Helper()
    64  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTransient", reflect.TypeOf((*MockStarter)(nil).StartTransient), arg0, arg1, arg2, arg3, arg4)
    65  }
    66  

View as plain text