...

Source file src/github.com/redhat-developer/odo/pkg/libdevfile/handler_mock.go

Documentation: github.com/redhat-developer/odo/pkg/libdevfile

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: pkg/libdevfile/libdevfile.go
     3  
     4  // Package libdevfile is a generated GoMock package.
     5  package libdevfile
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	v1alpha2 "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
    12  	gomock "github.com/golang/mock/gomock"
    13  )
    14  
    15  // MockHandler is a mock of Handler interface.
    16  type MockHandler struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockHandlerMockRecorder
    19  }
    20  
    21  // MockHandlerMockRecorder is the mock recorder for MockHandler.
    22  type MockHandlerMockRecorder struct {
    23  	mock *MockHandler
    24  }
    25  
    26  // NewMockHandler creates a new mock instance.
    27  func NewMockHandler(ctrl *gomock.Controller) *MockHandler {
    28  	mock := &MockHandler{ctrl: ctrl}
    29  	mock.recorder = &MockHandlerMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockHandler) EXPECT() *MockHandlerMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // ApplyImage mocks base method.
    39  func (m *MockHandler) ApplyImage(image v1alpha2.Component) error {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "ApplyImage", image)
    42  	ret0, _ := ret[0].(error)
    43  	return ret0
    44  }
    45  
    46  // ApplyImage indicates an expected call of ApplyImage.
    47  func (mr *MockHandlerMockRecorder) ApplyImage(image interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyImage", reflect.TypeOf((*MockHandler)(nil).ApplyImage), image)
    50  }
    51  
    52  // ApplyKubernetes mocks base method.
    53  func (m *MockHandler) ApplyKubernetes(kubernetes v1alpha2.Component, kind v1alpha2.CommandGroupKind) error {
    54  	m.ctrl.T.Helper()
    55  	ret := m.ctrl.Call(m, "ApplyKubernetes", kubernetes, kind)
    56  	ret0, _ := ret[0].(error)
    57  	return ret0
    58  }
    59  
    60  // ApplyKubernetes indicates an expected call of ApplyKubernetes.
    61  func (mr *MockHandlerMockRecorder) ApplyKubernetes(kubernetes, kind interface{}) *gomock.Call {
    62  	mr.mock.ctrl.T.Helper()
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyKubernetes", reflect.TypeOf((*MockHandler)(nil).ApplyKubernetes), kubernetes, kind)
    64  }
    65  
    66  // ApplyOpenShift mocks base method.
    67  func (m *MockHandler) ApplyOpenShift(openshift v1alpha2.Component, kind v1alpha2.CommandGroupKind) error {
    68  	m.ctrl.T.Helper()
    69  	ret := m.ctrl.Call(m, "ApplyOpenShift", openshift, kind)
    70  	ret0, _ := ret[0].(error)
    71  	return ret0
    72  }
    73  
    74  // ApplyOpenShift indicates an expected call of ApplyOpenShift.
    75  func (mr *MockHandlerMockRecorder) ApplyOpenShift(openshift, kind interface{}) *gomock.Call {
    76  	mr.mock.ctrl.T.Helper()
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyOpenShift", reflect.TypeOf((*MockHandler)(nil).ApplyOpenShift), openshift, kind)
    78  }
    79  
    80  // ExecuteNonTerminatingCommand mocks base method.
    81  func (m *MockHandler) ExecuteNonTerminatingCommand(ctx context.Context, command v1alpha2.Command) error {
    82  	m.ctrl.T.Helper()
    83  	ret := m.ctrl.Call(m, "ExecuteNonTerminatingCommand", ctx, command)
    84  	ret0, _ := ret[0].(error)
    85  	return ret0
    86  }
    87  
    88  // ExecuteNonTerminatingCommand indicates an expected call of ExecuteNonTerminatingCommand.
    89  func (mr *MockHandlerMockRecorder) ExecuteNonTerminatingCommand(ctx, command interface{}) *gomock.Call {
    90  	mr.mock.ctrl.T.Helper()
    91  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteNonTerminatingCommand", reflect.TypeOf((*MockHandler)(nil).ExecuteNonTerminatingCommand), ctx, command)
    92  }
    93  
    94  // ExecuteTerminatingCommand mocks base method.
    95  func (m *MockHandler) ExecuteTerminatingCommand(ctx context.Context, command v1alpha2.Command) error {
    96  	m.ctrl.T.Helper()
    97  	ret := m.ctrl.Call(m, "ExecuteTerminatingCommand", ctx, command)
    98  	ret0, _ := ret[0].(error)
    99  	return ret0
   100  }
   101  
   102  // ExecuteTerminatingCommand indicates an expected call of ExecuteTerminatingCommand.
   103  func (mr *MockHandlerMockRecorder) ExecuteTerminatingCommand(ctx, command interface{}) *gomock.Call {
   104  	mr.mock.ctrl.T.Helper()
   105  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecuteTerminatingCommand", reflect.TypeOf((*MockHandler)(nil).ExecuteTerminatingCommand), ctx, command)
   106  }
   107  

View as plain text