-
Notifications
You must be signed in to change notification settings - Fork 0
/
env_vars_handler_mock.go
64 lines (53 loc) · 2.46 KB
/
env_vars_handler_mock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Code generated by MockGen. DO NOT EDIT.
// Source: ./api/environmentvariables/env_vars_handler.go
// Package environmentvariables is a generated GoMock package.
package environmentvariables
import (
reflect "reflect"
models "github.com/equinor/radix-api/api/environmentvariables/models"
gomock "github.com/golang/mock/gomock"
)
// MockEnvVarsHandler is a mock of EnvVarsHandler interface.
type MockEnvVarsHandler struct {
ctrl *gomock.Controller
recorder *MockEnvVarsHandlerMockRecorder
}
// MockEnvVarsHandlerMockRecorder is the mock recorder for MockEnvVarsHandler.
type MockEnvVarsHandlerMockRecorder struct {
mock *MockEnvVarsHandler
}
// NewMockEnvVarsHandler creates a new mock instance.
func NewMockEnvVarsHandler(ctrl *gomock.Controller) *MockEnvVarsHandler {
mock := &MockEnvVarsHandler{ctrl: ctrl}
mock.recorder = &MockEnvVarsHandlerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockEnvVarsHandler) EXPECT() *MockEnvVarsHandlerMockRecorder {
return m.recorder
}
// ChangeEnvVar mocks base method.
func (m *MockEnvVarsHandler) ChangeEnvVar(appName, envName, componentName string, envVarsParams []models.EnvVarParameter) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ChangeEnvVar", appName, envName, componentName, envVarsParams)
ret0, _ := ret[0].(error)
return ret0
}
// ChangeEnvVar indicates an expected call of ChangeEnvVar.
func (mr *MockEnvVarsHandlerMockRecorder) ChangeEnvVar(appName, envName, componentName, envVarsParams interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeEnvVar", reflect.TypeOf((*MockEnvVarsHandler)(nil).ChangeEnvVar), appName, envName, componentName, envVarsParams)
}
// GetComponentEnvVars mocks base method.
func (m *MockEnvVarsHandler) GetComponentEnvVars(appName, envName, componentName string) ([]models.EnvVar, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetComponentEnvVars", appName, envName, componentName)
ret0, _ := ret[0].([]models.EnvVar)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetComponentEnvVars indicates an expected call of GetComponentEnvVars.
func (mr *MockEnvVarsHandlerMockRecorder) GetComponentEnvVars(appName, envName, componentName interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetComponentEnvVars", reflect.TypeOf((*MockEnvVarsHandler)(nil).GetComponentEnvVars), appName, envName, componentName)
}