chore: fix typo in mockgen (#403)
This commit is contained in:
@ -18,7 +18,7 @@ func Test_SimpleCreate(t *testing.T) {
|
|||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
ctrl := gomock.NewController(t)
|
ctrl := gomock.NewController(t)
|
||||||
scriptsApi := mock.NewMockInvocableScriptsApi(ctrl)
|
scriptsApi := mock.NewMockInvokableScriptsApi(ctrl)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
scriptId = "123456789"
|
scriptId = "123456789"
|
||||||
@ -76,7 +76,7 @@ func Test_SimpleList(t *testing.T) {
|
|||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
ctrl := gomock.NewController(t)
|
ctrl := gomock.NewController(t)
|
||||||
scriptsApi := mock.NewMockInvocableScriptsApi(ctrl)
|
scriptsApi := mock.NewMockInvokableScriptsApi(ctrl)
|
||||||
|
|
||||||
language := api.SCRIPTLANGUAGE_FLUX
|
language := api.SCRIPTLANGUAGE_FLUX
|
||||||
scripts := []api.Script{{
|
scripts := []api.Script{{
|
||||||
@ -135,7 +135,7 @@ func Test_Update(t *testing.T) {
|
|||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
ctrl := gomock.NewController(t)
|
ctrl := gomock.NewController(t)
|
||||||
scriptsApi := mock.NewMockInvocableScriptsApi(ctrl)
|
scriptsApi := mock.NewMockInvokableScriptsApi(ctrl)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
scriptId = "123456789"
|
scriptId = "123456789"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by MockGen. DO NOT EDIT.
|
// Code generated by MockGen. DO NOT EDIT.
|
||||||
// Source: github.com/influxdata/influx-cli/v2/api (interfaces: InvocableScriptsApi)
|
// Source: github.com/influxdata/influx-cli/v2/api (interfaces: InvokableScriptsApi)
|
||||||
|
|
||||||
// Package mock is a generated GoMock package.
|
// Package mock is a generated GoMock package.
|
||||||
package mock
|
package mock
|
||||||
@ -13,31 +13,31 @@ import (
|
|||||||
api "github.com/influxdata/influx-cli/v2/api"
|
api "github.com/influxdata/influx-cli/v2/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MockInvocableScriptsApi is a mock of InvocableScriptsApi interface.
|
// MockInvokableScriptsApi is a mock of InvokableScriptsApi interface.
|
||||||
type MockInvocableScriptsApi struct {
|
type MockInvokableScriptsApi struct {
|
||||||
ctrl *gomock.Controller
|
ctrl *gomock.Controller
|
||||||
recorder *MockInvocableScriptsApiMockRecorder
|
recorder *MockInvokableScriptsApiMockRecorder
|
||||||
}
|
}
|
||||||
|
|
||||||
// MockInvocableScriptsApiMockRecorder is the mock recorder for MockInvocableScriptsApi.
|
// MockInvokableScriptsApiMockRecorder is the mock recorder for MockInvokableScriptsApi.
|
||||||
type MockInvocableScriptsApiMockRecorder struct {
|
type MockInvokableScriptsApiMockRecorder struct {
|
||||||
mock *MockInvocableScriptsApi
|
mock *MockInvokableScriptsApi
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewMockInvocableScriptsApi creates a new mock instance.
|
// NewMockInvokableScriptsApi creates a new mock instance.
|
||||||
func NewMockInvocableScriptsApi(ctrl *gomock.Controller) *MockInvocableScriptsApi {
|
func NewMockInvokableScriptsApi(ctrl *gomock.Controller) *MockInvokableScriptsApi {
|
||||||
mock := &MockInvocableScriptsApi{ctrl: ctrl}
|
mock := &MockInvokableScriptsApi{ctrl: ctrl}
|
||||||
mock.recorder = &MockInvocableScriptsApiMockRecorder{mock}
|
mock.recorder = &MockInvokableScriptsApiMockRecorder{mock}
|
||||||
return mock
|
return mock
|
||||||
}
|
}
|
||||||
|
|
||||||
// EXPECT returns an object that allows the caller to indicate expected use.
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
||||||
func (m *MockInvocableScriptsApi) EXPECT() *MockInvocableScriptsApiMockRecorder {
|
func (m *MockInvokableScriptsApi) EXPECT() *MockInvokableScriptsApiMockRecorder {
|
||||||
return m.recorder
|
return m.recorder
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteScriptsID mocks base method.
|
// DeleteScriptsID mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) DeleteScriptsID(arg0 context.Context, arg1 string) api.ApiDeleteScriptsIDRequest {
|
func (m *MockInvokableScriptsApi) DeleteScriptsID(arg0 context.Context, arg1 string) api.ApiDeleteScriptsIDRequest {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "DeleteScriptsID", arg0, arg1)
|
ret := m.ctrl.Call(m, "DeleteScriptsID", arg0, arg1)
|
||||||
ret0, _ := ret[0].(api.ApiDeleteScriptsIDRequest)
|
ret0, _ := ret[0].(api.ApiDeleteScriptsIDRequest)
|
||||||
@ -45,13 +45,13 @@ func (m *MockInvocableScriptsApi) DeleteScriptsID(arg0 context.Context, arg1 str
|
|||||||
}
|
}
|
||||||
|
|
||||||
// DeleteScriptsID indicates an expected call of DeleteScriptsID.
|
// DeleteScriptsID indicates an expected call of DeleteScriptsID.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) DeleteScriptsID(arg0, arg1 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) DeleteScriptsID(arg0, arg1 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScriptsID", reflect.TypeOf((*MockInvocableScriptsApi)(nil).DeleteScriptsID), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScriptsID", reflect.TypeOf((*MockInvokableScriptsApi)(nil).DeleteScriptsID), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteScriptsIDExecute mocks base method.
|
// DeleteScriptsIDExecute mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) DeleteScriptsIDExecute(arg0 api.ApiDeleteScriptsIDRequest) error {
|
func (m *MockInvokableScriptsApi) DeleteScriptsIDExecute(arg0 api.ApiDeleteScriptsIDRequest) error {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "DeleteScriptsIDExecute", arg0)
|
ret := m.ctrl.Call(m, "DeleteScriptsIDExecute", arg0)
|
||||||
ret0, _ := ret[0].(error)
|
ret0, _ := ret[0].(error)
|
||||||
@ -59,13 +59,13 @@ func (m *MockInvocableScriptsApi) DeleteScriptsIDExecute(arg0 api.ApiDeleteScrip
|
|||||||
}
|
}
|
||||||
|
|
||||||
// DeleteScriptsIDExecute indicates an expected call of DeleteScriptsIDExecute.
|
// DeleteScriptsIDExecute indicates an expected call of DeleteScriptsIDExecute.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) DeleteScriptsIDExecute(arg0 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) DeleteScriptsIDExecute(arg0 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScriptsIDExecute", reflect.TypeOf((*MockInvocableScriptsApi)(nil).DeleteScriptsIDExecute), arg0)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScriptsIDExecute", reflect.TypeOf((*MockInvokableScriptsApi)(nil).DeleteScriptsIDExecute), arg0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteScriptsIDExecuteWithHttpInfo mocks base method.
|
// DeleteScriptsIDExecuteWithHttpInfo mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) DeleteScriptsIDExecuteWithHttpInfo(arg0 api.ApiDeleteScriptsIDRequest) (*http.Response, error) {
|
func (m *MockInvokableScriptsApi) DeleteScriptsIDExecuteWithHttpInfo(arg0 api.ApiDeleteScriptsIDRequest) (*http.Response, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "DeleteScriptsIDExecuteWithHttpInfo", arg0)
|
ret := m.ctrl.Call(m, "DeleteScriptsIDExecuteWithHttpInfo", arg0)
|
||||||
ret0, _ := ret[0].(*http.Response)
|
ret0, _ := ret[0].(*http.Response)
|
||||||
@ -74,13 +74,13 @@ func (m *MockInvocableScriptsApi) DeleteScriptsIDExecuteWithHttpInfo(arg0 api.Ap
|
|||||||
}
|
}
|
||||||
|
|
||||||
// DeleteScriptsIDExecuteWithHttpInfo indicates an expected call of DeleteScriptsIDExecuteWithHttpInfo.
|
// DeleteScriptsIDExecuteWithHttpInfo indicates an expected call of DeleteScriptsIDExecuteWithHttpInfo.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) DeleteScriptsIDExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) DeleteScriptsIDExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScriptsIDExecuteWithHttpInfo", reflect.TypeOf((*MockInvocableScriptsApi)(nil).DeleteScriptsIDExecuteWithHttpInfo), arg0)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScriptsIDExecuteWithHttpInfo", reflect.TypeOf((*MockInvokableScriptsApi)(nil).DeleteScriptsIDExecuteWithHttpInfo), arg0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetScripts mocks base method.
|
// GetScripts mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) GetScripts(arg0 context.Context) api.ApiGetScriptsRequest {
|
func (m *MockInvokableScriptsApi) GetScripts(arg0 context.Context) api.ApiGetScriptsRequest {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "GetScripts", arg0)
|
ret := m.ctrl.Call(m, "GetScripts", arg0)
|
||||||
ret0, _ := ret[0].(api.ApiGetScriptsRequest)
|
ret0, _ := ret[0].(api.ApiGetScriptsRequest)
|
||||||
@ -88,13 +88,13 @@ func (m *MockInvocableScriptsApi) GetScripts(arg0 context.Context) api.ApiGetScr
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetScripts indicates an expected call of GetScripts.
|
// GetScripts indicates an expected call of GetScripts.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) GetScripts(arg0 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) GetScripts(arg0 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScripts", reflect.TypeOf((*MockInvocableScriptsApi)(nil).GetScripts), arg0)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScripts", reflect.TypeOf((*MockInvokableScriptsApi)(nil).GetScripts), arg0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetScriptsExecute mocks base method.
|
// GetScriptsExecute mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) GetScriptsExecute(arg0 api.ApiGetScriptsRequest) (api.Scripts, error) {
|
func (m *MockInvokableScriptsApi) GetScriptsExecute(arg0 api.ApiGetScriptsRequest) (api.Scripts, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "GetScriptsExecute", arg0)
|
ret := m.ctrl.Call(m, "GetScriptsExecute", arg0)
|
||||||
ret0, _ := ret[0].(api.Scripts)
|
ret0, _ := ret[0].(api.Scripts)
|
||||||
@ -103,13 +103,13 @@ func (m *MockInvocableScriptsApi) GetScriptsExecute(arg0 api.ApiGetScriptsReques
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetScriptsExecute indicates an expected call of GetScriptsExecute.
|
// GetScriptsExecute indicates an expected call of GetScriptsExecute.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) GetScriptsExecute(arg0 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) GetScriptsExecute(arg0 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScriptsExecute", reflect.TypeOf((*MockInvocableScriptsApi)(nil).GetScriptsExecute), arg0)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScriptsExecute", reflect.TypeOf((*MockInvokableScriptsApi)(nil).GetScriptsExecute), arg0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetScriptsExecuteWithHttpInfo mocks base method.
|
// GetScriptsExecuteWithHttpInfo mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) GetScriptsExecuteWithHttpInfo(arg0 api.ApiGetScriptsRequest) (api.Scripts, *http.Response, error) {
|
func (m *MockInvokableScriptsApi) GetScriptsExecuteWithHttpInfo(arg0 api.ApiGetScriptsRequest) (api.Scripts, *http.Response, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "GetScriptsExecuteWithHttpInfo", arg0)
|
ret := m.ctrl.Call(m, "GetScriptsExecuteWithHttpInfo", arg0)
|
||||||
ret0, _ := ret[0].(api.Scripts)
|
ret0, _ := ret[0].(api.Scripts)
|
||||||
@ -119,13 +119,13 @@ func (m *MockInvocableScriptsApi) GetScriptsExecuteWithHttpInfo(arg0 api.ApiGetS
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetScriptsExecuteWithHttpInfo indicates an expected call of GetScriptsExecuteWithHttpInfo.
|
// GetScriptsExecuteWithHttpInfo indicates an expected call of GetScriptsExecuteWithHttpInfo.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) GetScriptsExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) GetScriptsExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScriptsExecuteWithHttpInfo", reflect.TypeOf((*MockInvocableScriptsApi)(nil).GetScriptsExecuteWithHttpInfo), arg0)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScriptsExecuteWithHttpInfo", reflect.TypeOf((*MockInvokableScriptsApi)(nil).GetScriptsExecuteWithHttpInfo), arg0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetScriptsID mocks base method.
|
// GetScriptsID mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) GetScriptsID(arg0 context.Context, arg1 string) api.ApiGetScriptsIDRequest {
|
func (m *MockInvokableScriptsApi) GetScriptsID(arg0 context.Context, arg1 string) api.ApiGetScriptsIDRequest {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "GetScriptsID", arg0, arg1)
|
ret := m.ctrl.Call(m, "GetScriptsID", arg0, arg1)
|
||||||
ret0, _ := ret[0].(api.ApiGetScriptsIDRequest)
|
ret0, _ := ret[0].(api.ApiGetScriptsIDRequest)
|
||||||
@ -133,13 +133,13 @@ func (m *MockInvocableScriptsApi) GetScriptsID(arg0 context.Context, arg1 string
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetScriptsID indicates an expected call of GetScriptsID.
|
// GetScriptsID indicates an expected call of GetScriptsID.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) GetScriptsID(arg0, arg1 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) GetScriptsID(arg0, arg1 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScriptsID", reflect.TypeOf((*MockInvocableScriptsApi)(nil).GetScriptsID), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScriptsID", reflect.TypeOf((*MockInvokableScriptsApi)(nil).GetScriptsID), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetScriptsIDExecute mocks base method.
|
// GetScriptsIDExecute mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) GetScriptsIDExecute(arg0 api.ApiGetScriptsIDRequest) (api.Script, error) {
|
func (m *MockInvokableScriptsApi) GetScriptsIDExecute(arg0 api.ApiGetScriptsIDRequest) (api.Script, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "GetScriptsIDExecute", arg0)
|
ret := m.ctrl.Call(m, "GetScriptsIDExecute", arg0)
|
||||||
ret0, _ := ret[0].(api.Script)
|
ret0, _ := ret[0].(api.Script)
|
||||||
@ -148,13 +148,13 @@ func (m *MockInvocableScriptsApi) GetScriptsIDExecute(arg0 api.ApiGetScriptsIDRe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetScriptsIDExecute indicates an expected call of GetScriptsIDExecute.
|
// GetScriptsIDExecute indicates an expected call of GetScriptsIDExecute.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) GetScriptsIDExecute(arg0 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) GetScriptsIDExecute(arg0 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScriptsIDExecute", reflect.TypeOf((*MockInvocableScriptsApi)(nil).GetScriptsIDExecute), arg0)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScriptsIDExecute", reflect.TypeOf((*MockInvokableScriptsApi)(nil).GetScriptsIDExecute), arg0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetScriptsIDExecuteWithHttpInfo mocks base method.
|
// GetScriptsIDExecuteWithHttpInfo mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) GetScriptsIDExecuteWithHttpInfo(arg0 api.ApiGetScriptsIDRequest) (api.Script, *http.Response, error) {
|
func (m *MockInvokableScriptsApi) GetScriptsIDExecuteWithHttpInfo(arg0 api.ApiGetScriptsIDRequest) (api.Script, *http.Response, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "GetScriptsIDExecuteWithHttpInfo", arg0)
|
ret := m.ctrl.Call(m, "GetScriptsIDExecuteWithHttpInfo", arg0)
|
||||||
ret0, _ := ret[0].(api.Script)
|
ret0, _ := ret[0].(api.Script)
|
||||||
@ -164,13 +164,13 @@ func (m *MockInvocableScriptsApi) GetScriptsIDExecuteWithHttpInfo(arg0 api.ApiGe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetScriptsIDExecuteWithHttpInfo indicates an expected call of GetScriptsIDExecuteWithHttpInfo.
|
// GetScriptsIDExecuteWithHttpInfo indicates an expected call of GetScriptsIDExecuteWithHttpInfo.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) GetScriptsIDExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) GetScriptsIDExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScriptsIDExecuteWithHttpInfo", reflect.TypeOf((*MockInvocableScriptsApi)(nil).GetScriptsIDExecuteWithHttpInfo), arg0)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScriptsIDExecuteWithHttpInfo", reflect.TypeOf((*MockInvokableScriptsApi)(nil).GetScriptsIDExecuteWithHttpInfo), arg0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// PatchScriptsID mocks base method.
|
// PatchScriptsID mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) PatchScriptsID(arg0 context.Context, arg1 string) api.ApiPatchScriptsIDRequest {
|
func (m *MockInvokableScriptsApi) PatchScriptsID(arg0 context.Context, arg1 string) api.ApiPatchScriptsIDRequest {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "PatchScriptsID", arg0, arg1)
|
ret := m.ctrl.Call(m, "PatchScriptsID", arg0, arg1)
|
||||||
ret0, _ := ret[0].(api.ApiPatchScriptsIDRequest)
|
ret0, _ := ret[0].(api.ApiPatchScriptsIDRequest)
|
||||||
@ -178,13 +178,13 @@ func (m *MockInvocableScriptsApi) PatchScriptsID(arg0 context.Context, arg1 stri
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PatchScriptsID indicates an expected call of PatchScriptsID.
|
// PatchScriptsID indicates an expected call of PatchScriptsID.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) PatchScriptsID(arg0, arg1 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) PatchScriptsID(arg0, arg1 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchScriptsID", reflect.TypeOf((*MockInvocableScriptsApi)(nil).PatchScriptsID), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchScriptsID", reflect.TypeOf((*MockInvokableScriptsApi)(nil).PatchScriptsID), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// PatchScriptsIDExecute mocks base method.
|
// PatchScriptsIDExecute mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) PatchScriptsIDExecute(arg0 api.ApiPatchScriptsIDRequest) (api.Script, error) {
|
func (m *MockInvokableScriptsApi) PatchScriptsIDExecute(arg0 api.ApiPatchScriptsIDRequest) (api.Script, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "PatchScriptsIDExecute", arg0)
|
ret := m.ctrl.Call(m, "PatchScriptsIDExecute", arg0)
|
||||||
ret0, _ := ret[0].(api.Script)
|
ret0, _ := ret[0].(api.Script)
|
||||||
@ -193,13 +193,13 @@ func (m *MockInvocableScriptsApi) PatchScriptsIDExecute(arg0 api.ApiPatchScripts
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PatchScriptsIDExecute indicates an expected call of PatchScriptsIDExecute.
|
// PatchScriptsIDExecute indicates an expected call of PatchScriptsIDExecute.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) PatchScriptsIDExecute(arg0 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) PatchScriptsIDExecute(arg0 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchScriptsIDExecute", reflect.TypeOf((*MockInvocableScriptsApi)(nil).PatchScriptsIDExecute), arg0)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchScriptsIDExecute", reflect.TypeOf((*MockInvokableScriptsApi)(nil).PatchScriptsIDExecute), arg0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// PatchScriptsIDExecuteWithHttpInfo mocks base method.
|
// PatchScriptsIDExecuteWithHttpInfo mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) PatchScriptsIDExecuteWithHttpInfo(arg0 api.ApiPatchScriptsIDRequest) (api.Script, *http.Response, error) {
|
func (m *MockInvokableScriptsApi) PatchScriptsIDExecuteWithHttpInfo(arg0 api.ApiPatchScriptsIDRequest) (api.Script, *http.Response, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "PatchScriptsIDExecuteWithHttpInfo", arg0)
|
ret := m.ctrl.Call(m, "PatchScriptsIDExecuteWithHttpInfo", arg0)
|
||||||
ret0, _ := ret[0].(api.Script)
|
ret0, _ := ret[0].(api.Script)
|
||||||
@ -209,13 +209,13 @@ func (m *MockInvocableScriptsApi) PatchScriptsIDExecuteWithHttpInfo(arg0 api.Api
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PatchScriptsIDExecuteWithHttpInfo indicates an expected call of PatchScriptsIDExecuteWithHttpInfo.
|
// PatchScriptsIDExecuteWithHttpInfo indicates an expected call of PatchScriptsIDExecuteWithHttpInfo.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) PatchScriptsIDExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) PatchScriptsIDExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchScriptsIDExecuteWithHttpInfo", reflect.TypeOf((*MockInvocableScriptsApi)(nil).PatchScriptsIDExecuteWithHttpInfo), arg0)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchScriptsIDExecuteWithHttpInfo", reflect.TypeOf((*MockInvokableScriptsApi)(nil).PatchScriptsIDExecuteWithHttpInfo), arg0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// PostScripts mocks base method.
|
// PostScripts mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) PostScripts(arg0 context.Context) api.ApiPostScriptsRequest {
|
func (m *MockInvokableScriptsApi) PostScripts(arg0 context.Context) api.ApiPostScriptsRequest {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "PostScripts", arg0)
|
ret := m.ctrl.Call(m, "PostScripts", arg0)
|
||||||
ret0, _ := ret[0].(api.ApiPostScriptsRequest)
|
ret0, _ := ret[0].(api.ApiPostScriptsRequest)
|
||||||
@ -223,13 +223,13 @@ func (m *MockInvocableScriptsApi) PostScripts(arg0 context.Context) api.ApiPostS
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PostScripts indicates an expected call of PostScripts.
|
// PostScripts indicates an expected call of PostScripts.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) PostScripts(arg0 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) PostScripts(arg0 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostScripts", reflect.TypeOf((*MockInvocableScriptsApi)(nil).PostScripts), arg0)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostScripts", reflect.TypeOf((*MockInvokableScriptsApi)(nil).PostScripts), arg0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// PostScriptsExecute mocks base method.
|
// PostScriptsExecute mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) PostScriptsExecute(arg0 api.ApiPostScriptsRequest) (api.Script, error) {
|
func (m *MockInvokableScriptsApi) PostScriptsExecute(arg0 api.ApiPostScriptsRequest) (api.Script, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "PostScriptsExecute", arg0)
|
ret := m.ctrl.Call(m, "PostScriptsExecute", arg0)
|
||||||
ret0, _ := ret[0].(api.Script)
|
ret0, _ := ret[0].(api.Script)
|
||||||
@ -238,13 +238,13 @@ func (m *MockInvocableScriptsApi) PostScriptsExecute(arg0 api.ApiPostScriptsRequ
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PostScriptsExecute indicates an expected call of PostScriptsExecute.
|
// PostScriptsExecute indicates an expected call of PostScriptsExecute.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) PostScriptsExecute(arg0 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) PostScriptsExecute(arg0 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostScriptsExecute", reflect.TypeOf((*MockInvocableScriptsApi)(nil).PostScriptsExecute), arg0)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostScriptsExecute", reflect.TypeOf((*MockInvokableScriptsApi)(nil).PostScriptsExecute), arg0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// PostScriptsExecuteWithHttpInfo mocks base method.
|
// PostScriptsExecuteWithHttpInfo mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) PostScriptsExecuteWithHttpInfo(arg0 api.ApiPostScriptsRequest) (api.Script, *http.Response, error) {
|
func (m *MockInvokableScriptsApi) PostScriptsExecuteWithHttpInfo(arg0 api.ApiPostScriptsRequest) (api.Script, *http.Response, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "PostScriptsExecuteWithHttpInfo", arg0)
|
ret := m.ctrl.Call(m, "PostScriptsExecuteWithHttpInfo", arg0)
|
||||||
ret0, _ := ret[0].(api.Script)
|
ret0, _ := ret[0].(api.Script)
|
||||||
@ -254,13 +254,13 @@ func (m *MockInvocableScriptsApi) PostScriptsExecuteWithHttpInfo(arg0 api.ApiPos
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PostScriptsExecuteWithHttpInfo indicates an expected call of PostScriptsExecuteWithHttpInfo.
|
// PostScriptsExecuteWithHttpInfo indicates an expected call of PostScriptsExecuteWithHttpInfo.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) PostScriptsExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) PostScriptsExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostScriptsExecuteWithHttpInfo", reflect.TypeOf((*MockInvocableScriptsApi)(nil).PostScriptsExecuteWithHttpInfo), arg0)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostScriptsExecuteWithHttpInfo", reflect.TypeOf((*MockInvokableScriptsApi)(nil).PostScriptsExecuteWithHttpInfo), arg0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// PostScriptsIDInvoke mocks base method.
|
// PostScriptsIDInvoke mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) PostScriptsIDInvoke(arg0 context.Context, arg1 string) api.ApiPostScriptsIDInvokeRequest {
|
func (m *MockInvokableScriptsApi) PostScriptsIDInvoke(arg0 context.Context, arg1 string) api.ApiPostScriptsIDInvokeRequest {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "PostScriptsIDInvoke", arg0, arg1)
|
ret := m.ctrl.Call(m, "PostScriptsIDInvoke", arg0, arg1)
|
||||||
ret0, _ := ret[0].(api.ApiPostScriptsIDInvokeRequest)
|
ret0, _ := ret[0].(api.ApiPostScriptsIDInvokeRequest)
|
||||||
@ -268,13 +268,13 @@ func (m *MockInvocableScriptsApi) PostScriptsIDInvoke(arg0 context.Context, arg1
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PostScriptsIDInvoke indicates an expected call of PostScriptsIDInvoke.
|
// PostScriptsIDInvoke indicates an expected call of PostScriptsIDInvoke.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) PostScriptsIDInvoke(arg0, arg1 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) PostScriptsIDInvoke(arg0, arg1 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostScriptsIDInvoke", reflect.TypeOf((*MockInvocableScriptsApi)(nil).PostScriptsIDInvoke), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostScriptsIDInvoke", reflect.TypeOf((*MockInvokableScriptsApi)(nil).PostScriptsIDInvoke), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// PostScriptsIDInvokeExecute mocks base method.
|
// PostScriptsIDInvokeExecute mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) PostScriptsIDInvokeExecute(arg0 api.ApiPostScriptsIDInvokeRequest) (*http.Response, error) {
|
func (m *MockInvokableScriptsApi) PostScriptsIDInvokeExecute(arg0 api.ApiPostScriptsIDInvokeRequest) (*http.Response, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "PostScriptsIDInvokeExecute", arg0)
|
ret := m.ctrl.Call(m, "PostScriptsIDInvokeExecute", arg0)
|
||||||
ret0, _ := ret[0].(*http.Response)
|
ret0, _ := ret[0].(*http.Response)
|
||||||
@ -283,13 +283,13 @@ func (m *MockInvocableScriptsApi) PostScriptsIDInvokeExecute(arg0 api.ApiPostScr
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PostScriptsIDInvokeExecute indicates an expected call of PostScriptsIDInvokeExecute.
|
// PostScriptsIDInvokeExecute indicates an expected call of PostScriptsIDInvokeExecute.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) PostScriptsIDInvokeExecute(arg0 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) PostScriptsIDInvokeExecute(arg0 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostScriptsIDInvokeExecute", reflect.TypeOf((*MockInvocableScriptsApi)(nil).PostScriptsIDInvokeExecute), arg0)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostScriptsIDInvokeExecute", reflect.TypeOf((*MockInvokableScriptsApi)(nil).PostScriptsIDInvokeExecute), arg0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// PostScriptsIDInvokeExecuteWithHttpInfo mocks base method.
|
// PostScriptsIDInvokeExecuteWithHttpInfo mocks base method.
|
||||||
func (m *MockInvocableScriptsApi) PostScriptsIDInvokeExecuteWithHttpInfo(arg0 api.ApiPostScriptsIDInvokeRequest) (*http.Response, *http.Response, error) {
|
func (m *MockInvokableScriptsApi) PostScriptsIDInvokeExecuteWithHttpInfo(arg0 api.ApiPostScriptsIDInvokeRequest) (*http.Response, *http.Response, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "PostScriptsIDInvokeExecuteWithHttpInfo", arg0)
|
ret := m.ctrl.Call(m, "PostScriptsIDInvokeExecuteWithHttpInfo", arg0)
|
||||||
ret0, _ := ret[0].(*http.Response)
|
ret0, _ := ret[0].(*http.Response)
|
||||||
@ -299,7 +299,7 @@ func (m *MockInvocableScriptsApi) PostScriptsIDInvokeExecuteWithHttpInfo(arg0 ap
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PostScriptsIDInvokeExecuteWithHttpInfo indicates an expected call of PostScriptsIDInvokeExecuteWithHttpInfo.
|
// PostScriptsIDInvokeExecuteWithHttpInfo indicates an expected call of PostScriptsIDInvokeExecuteWithHttpInfo.
|
||||||
func (mr *MockInvocableScriptsApiMockRecorder) PostScriptsIDInvokeExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
func (mr *MockInvokableScriptsApiMockRecorder) PostScriptsIDInvokeExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostScriptsIDInvokeExecuteWithHttpInfo", reflect.TypeOf((*MockInvocableScriptsApi)(nil).PostScriptsIDInvokeExecuteWithHttpInfo), arg0)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostScriptsIDInvokeExecuteWithHttpInfo", reflect.TypeOf((*MockInvokableScriptsApi)(nil).PostScriptsIDInvokeExecuteWithHttpInfo), arg0)
|
||||||
}
|
}
|
@ -13,7 +13,7 @@ package mock
|
|||||||
//go:generate go run github.com/golang/mock/mockgen -package mock -destination api_backup.gen.go github.com/influxdata/influx-cli/v2/api BackupApi
|
//go:generate go run github.com/golang/mock/mockgen -package mock -destination api_backup.gen.go github.com/influxdata/influx-cli/v2/api BackupApi
|
||||||
//go:generate go run github.com/golang/mock/mockgen -package mock -destination api_secret.gen.go github.com/influxdata/influx-cli/v2/api SecretsApi
|
//go:generate go run github.com/golang/mock/mockgen -package mock -destination api_secret.gen.go github.com/influxdata/influx-cli/v2/api SecretsApi
|
||||||
//go:generate go run github.com/golang/mock/mockgen -package mock -destination api_v1dbrps.gen.go github.com/influxdata/influx-cli/v2/api DBRPsApi
|
//go:generate go run github.com/golang/mock/mockgen -package mock -destination api_v1dbrps.gen.go github.com/influxdata/influx-cli/v2/api DBRPsApi
|
||||||
//go:generate go run github.com/golang/mock/mockgen -package mock -destination api_invocable_scripts.gen.go github.com/influxdata/influx-cli/v2/api InvocableScriptsApi
|
//go:generate go run github.com/golang/mock/mockgen -package mock -destination api_invokable_scripts.gen.go github.com/influxdata/influx-cli/v2/api InvokableScriptsApi
|
||||||
|
|
||||||
// Other mocks
|
// Other mocks
|
||||||
//go:generate go run github.com/golang/mock/mockgen -package mock -destination config.gen.go -mock_names Service=MockConfigService github.com/influxdata/influx-cli/v2/config Service
|
//go:generate go run github.com/golang/mock/mockgen -package mock -destination config.gen.go -mock_names Service=MockConfigService github.com/influxdata/influx-cli/v2/config Service
|
||||||
|
Reference in New Issue
Block a user