...

Source file src/github.com/redhat-developer/odo/pkg/devfile/image/mock_Backend.go

Documentation: github.com/redhat-developer/odo/pkg/devfile/image

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: pkg/devfile/image/image.go
     3  
     4  // Package image is a generated GoMock package.
     5  package image
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	v1alpha2 "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
    11  	gomock "github.com/golang/mock/gomock"
    12  	filesystem "github.com/redhat-developer/odo/pkg/testingutil/filesystem"
    13  )
    14  
    15  // MockBackend is a mock of Backend interface.
    16  type MockBackend struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockBackendMockRecorder
    19  }
    20  
    21  // MockBackendMockRecorder is the mock recorder for MockBackend.
    22  type MockBackendMockRecorder struct {
    23  	mock *MockBackend
    24  }
    25  
    26  // NewMockBackend creates a new mock instance.
    27  func NewMockBackend(ctrl *gomock.Controller) *MockBackend {
    28  	mock := &MockBackend{ctrl: ctrl}
    29  	mock.recorder = &MockBackendMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockBackend) EXPECT() *MockBackendMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // Build mocks base method.
    39  func (m *MockBackend) Build(fs filesystem.Filesystem, image *v1alpha2.ImageComponent, devfilePath string) error {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "Build", fs, image, devfilePath)
    42  	ret0, _ := ret[0].(error)
    43  	return ret0
    44  }
    45  
    46  // Build indicates an expected call of Build.
    47  func (mr *MockBackendMockRecorder) Build(fs, image, devfilePath interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Build", reflect.TypeOf((*MockBackend)(nil).Build), fs, image, devfilePath)
    50  }
    51  
    52  // Push mocks base method.
    53  func (m *MockBackend) Push(image string) error {
    54  	m.ctrl.T.Helper()
    55  	ret := m.ctrl.Call(m, "Push", image)
    56  	ret0, _ := ret[0].(error)
    57  	return ret0
    58  }
    59  
    60  // Push indicates an expected call of Push.
    61  func (mr *MockBackendMockRecorder) Push(image interface{}) *gomock.Call {
    62  	mr.mock.ctrl.T.Helper()
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Push", reflect.TypeOf((*MockBackend)(nil).Push), image)
    64  }
    65  
    66  // String mocks base method.
    67  func (m *MockBackend) String() string {
    68  	m.ctrl.T.Helper()
    69  	ret := m.ctrl.Call(m, "String")
    70  	ret0, _ := ret[0].(string)
    71  	return ret0
    72  }
    73  
    74  // String indicates an expected call of String.
    75  func (mr *MockBackendMockRecorder) String() *gomock.Call {
    76  	mr.mock.ctrl.T.Helper()
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockBackend)(nil).String))
    78  }
    79  

View as plain text