...

Source file src/edge-infra.dev/pkg/sds/lib/dbus/systemd/mocks/status_checker.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: StatusChecker)
     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  // MockStatusChecker is a mock of StatusChecker interface.
    15  type MockStatusChecker struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockStatusCheckerMockRecorder
    18  }
    19  
    20  // MockStatusCheckerMockRecorder is the mock recorder for MockStatusChecker.
    21  type MockStatusCheckerMockRecorder struct {
    22  	mock *MockStatusChecker
    23  }
    24  
    25  // NewMockStatusChecker creates a new mock instance.
    26  func NewMockStatusChecker(ctrl *gomock.Controller) *MockStatusChecker {
    27  	mock := &MockStatusChecker{ctrl: ctrl}
    28  	mock.recorder = &MockStatusCheckerMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockStatusChecker) EXPECT() *MockStatusCheckerMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // ActiveState mocks base method.
    38  func (m *MockStatusChecker) ActiveState(arg0 context.Context, arg1 string) (string, error) {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "ActiveState", arg0, arg1)
    41  	ret0, _ := ret[0].(string)
    42  	ret1, _ := ret[1].(error)
    43  	return ret0, ret1
    44  }
    45  
    46  // ActiveState indicates an expected call of ActiveState.
    47  func (mr *MockStatusCheckerMockRecorder) ActiveState(arg0, arg1 interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActiveState", reflect.TypeOf((*MockStatusChecker)(nil).ActiveState), arg0, arg1)
    50  }
    51  
    52  // Exists mocks base method.
    53  func (m *MockStatusChecker) Exists(arg0 context.Context, arg1 string) (bool, error) {
    54  	m.ctrl.T.Helper()
    55  	ret := m.ctrl.Call(m, "Exists", arg0, arg1)
    56  	ret0, _ := ret[0].(bool)
    57  	ret1, _ := ret[1].(error)
    58  	return ret0, ret1
    59  }
    60  
    61  // Exists indicates an expected call of Exists.
    62  func (mr *MockStatusCheckerMockRecorder) Exists(arg0, arg1 interface{}) *gomock.Call {
    63  	mr.mock.ctrl.T.Helper()
    64  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exists", reflect.TypeOf((*MockStatusChecker)(nil).Exists), arg0, arg1)
    65  }
    66  
    67  // SubState mocks base method.
    68  func (m *MockStatusChecker) SubState(arg0 context.Context, arg1 string) (string, error) {
    69  	m.ctrl.T.Helper()
    70  	ret := m.ctrl.Call(m, "SubState", arg0, arg1)
    71  	ret0, _ := ret[0].(string)
    72  	ret1, _ := ret[1].(error)
    73  	return ret0, ret1
    74  }
    75  
    76  // SubState indicates an expected call of SubState.
    77  func (mr *MockStatusCheckerMockRecorder) SubState(arg0, arg1 interface{}) *gomock.Call {
    78  	mr.mock.ctrl.T.Helper()
    79  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubState", reflect.TypeOf((*MockStatusChecker)(nil).SubState), arg0, arg1)
    80  }
    81  

View as plain text