github.com/kubeshop/testkube@v1.17.23/internal/graphql/services/mock_executors.go (about)

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