Files
influx-cli/internal/mock/config.gen.go
2021-05-06 10:19:41 -04:00

126 lines
4.2 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/influxdata/influx-cli/v2/internal/config (interfaces: Service)
// Package mock is a generated GoMock package.
package mock
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
config "github.com/influxdata/influx-cli/v2/internal/config"
)
// MockConfigService is a mock of Service interface.
type MockConfigService struct {
ctrl *gomock.Controller
recorder *MockConfigServiceMockRecorder
}
// MockConfigServiceMockRecorder is the mock recorder for MockConfigService.
type MockConfigServiceMockRecorder struct {
mock *MockConfigService
}
// NewMockConfigService creates a new mock instance.
func NewMockConfigService(ctrl *gomock.Controller) *MockConfigService {
mock := &MockConfigService{ctrl: ctrl}
mock.recorder = &MockConfigServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockConfigService) EXPECT() *MockConfigServiceMockRecorder {
return m.recorder
}
// Active mocks base method.
func (m *MockConfigService) Active() (config.Config, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Active")
ret0, _ := ret[0].(config.Config)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Active indicates an expected call of Active.
func (mr *MockConfigServiceMockRecorder) Active() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Active", reflect.TypeOf((*MockConfigService)(nil).Active))
}
// CreateConfig mocks base method.
func (m *MockConfigService) CreateConfig(arg0 config.Config) (config.Config, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateConfig", arg0)
ret0, _ := ret[0].(config.Config)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateConfig indicates an expected call of CreateConfig.
func (mr *MockConfigServiceMockRecorder) CreateConfig(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateConfig", reflect.TypeOf((*MockConfigService)(nil).CreateConfig), arg0)
}
// DeleteConfig mocks base method.
func (m *MockConfigService) DeleteConfig(arg0 string) (config.Config, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteConfig", arg0)
ret0, _ := ret[0].(config.Config)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DeleteConfig indicates an expected call of DeleteConfig.
func (mr *MockConfigServiceMockRecorder) DeleteConfig(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteConfig", reflect.TypeOf((*MockConfigService)(nil).DeleteConfig), arg0)
}
// ListConfigs mocks base method.
func (m *MockConfigService) ListConfigs() (config.Configs, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListConfigs")
ret0, _ := ret[0].(config.Configs)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListConfigs indicates an expected call of ListConfigs.
func (mr *MockConfigServiceMockRecorder) ListConfigs() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListConfigs", reflect.TypeOf((*MockConfigService)(nil).ListConfigs))
}
// SwitchActive mocks base method.
func (m *MockConfigService) SwitchActive(arg0 string) (config.Config, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SwitchActive", arg0)
ret0, _ := ret[0].(config.Config)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SwitchActive indicates an expected call of SwitchActive.
func (mr *MockConfigServiceMockRecorder) SwitchActive(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SwitchActive", reflect.TypeOf((*MockConfigService)(nil).SwitchActive), arg0)
}
// UpdateConfig mocks base method.
func (m *MockConfigService) UpdateConfig(arg0 config.Config) (config.Config, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateConfig", arg0)
ret0, _ := ret[0].(config.Config)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UpdateConfig indicates an expected call of UpdateConfig.
func (mr *MockConfigServiceMockRecorder) UpdateConfig(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateConfig", reflect.TypeOf((*MockConfigService)(nil).UpdateConfig), arg0)
}