...

Source file src/edge-infra.dev/pkg/sds/lib/dbus/systemd/mocks/restarter.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: Restarter)
     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  	gomock "github.com/golang/mock/gomock"
    13  )
    14  
    15  // MockRestarter is a mock of Restarter interface.
    16  type MockRestarter struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockRestarterMockRecorder
    19  }
    20  
    21  // MockRestarterMockRecorder is the mock recorder for MockRestarter.
    22  type MockRestarterMockRecorder struct {
    23  	mock *MockRestarter
    24  }
    25  
    26  // NewMockRestarter creates a new mock instance.
    27  func NewMockRestarter(ctrl *gomock.Controller) *MockRestarter {
    28  	mock := &MockRestarter{ctrl: ctrl}
    29  	mock.recorder = &MockRestarterMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockRestarter) EXPECT() *MockRestarterMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // Restart mocks base method.
    39  func (m *MockRestarter) Restart(arg0 context.Context, arg1 string, arg2 systemd.Mode, arg3 bool) error {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "Restart", arg0, arg1, arg2, arg3)
    42  	ret0, _ := ret[0].(error)
    43  	return ret0
    44  }
    45  
    46  // Restart indicates an expected call of Restart.
    47  func (mr *MockRestarterMockRecorder) Restart(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Restart", reflect.TypeOf((*MockRestarter)(nil).Restart), arg0, arg1, arg2, arg3)
    50  }
    51  

View as plain text