...

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

View as plain text