...

Source file src/edge-infra.dev/pkg/edge/api/mocks/mock_activity_service.go

Documentation: edge-infra.dev/pkg/edge/api/mocks

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

View as plain text