Files
odo/pkg/alizer/mock.go
Armel Soro abdb1c568d Update go.mod with new location of the Alizer library (#6962)
* Update 'go.mod' with new location of the Alizer library

* Downgrade and pin conflicting versions of 'github.com/docker/{cli,distributions}'

Pinning it to the version we had before.
Otherwise, there were issues when running 'go mod tidy':

```
$ go mod tidy
go: downloading github.com/operator-framework/api v0.17.6
go: finding module for package github.com/docker/docker/pkg/term
github.com/redhat-developer/odo/pkg/auth imports
        github.com/openshift/oc/pkg/cli/login imports
                github.com/openshift/oc/pkg/helpers/term imports
                        github.com/docker/docker/pkg/term: module
                        github.com/docker/docker@latest found
                        (v24.0.4+incompatible), but does not contain
                        package github.com/docker/docker/pkg/term

```

* Fix expected output in quickstart guides doc automation tests
2023-07-17 12:57:31 +02:00

85 lines
2.6 KiB
Go
Generated

// Code generated by MockGen. DO NOT EDIT.
// Source: pkg/alizer/interface.go
// Package alizer is a generated GoMock package.
package alizer
import (
context "context"
reflect "reflect"
model "github.com/devfile/alizer/pkg/apis/model"
gomock "github.com/golang/mock/gomock"
api "github.com/redhat-developer/odo/pkg/api"
)
// MockClient is a mock of Client interface.
type MockClient struct {
ctrl *gomock.Controller
recorder *MockClientMockRecorder
}
// MockClientMockRecorder is the mock recorder for MockClient.
type MockClientMockRecorder struct {
mock *MockClient
}
// NewMockClient creates a new mock instance.
func NewMockClient(ctrl *gomock.Controller) *MockClient {
mock := &MockClient{ctrl: ctrl}
mock.recorder = &MockClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockClient) EXPECT() *MockClientMockRecorder {
return m.recorder
}
// DetectFramework mocks base method.
func (m *MockClient) DetectFramework(ctx context.Context, path string) (model.DevFileType, string, api.Registry, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DetectFramework", ctx, path)
ret0, _ := ret[0].(model.DevFileType)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(api.Registry)
ret3, _ := ret[3].(error)
return ret0, ret1, ret2, ret3
}
// DetectFramework indicates an expected call of DetectFramework.
func (mr *MockClientMockRecorder) DetectFramework(ctx, path interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetectFramework", reflect.TypeOf((*MockClient)(nil).DetectFramework), ctx, path)
}
// DetectName mocks base method.
func (m *MockClient) DetectName(path string) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DetectName", path)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DetectName indicates an expected call of DetectName.
func (mr *MockClientMockRecorder) DetectName(path interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetectName", reflect.TypeOf((*MockClient)(nil).DetectName), path)
}
// DetectPorts mocks base method.
func (m *MockClient) DetectPorts(path string) ([]int, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DetectPorts", path)
ret0, _ := ret[0].([]int)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DetectPorts indicates an expected call of DetectPorts.
func (mr *MockClientMockRecorder) DetectPorts(path interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetectPorts", reflect.TypeOf((*MockClient)(nil).DetectPorts), path)
}