
* basic list, create, and invoke working * all commands working * added support for create script body from file and invoke params from file * linter cleanup * update defaults to existing parameters if not provided * updated generated mock files, added mock files for scripts, added basic script create test * added mock script list * cleanup pass, fixed not using params in list call * added update mock test * fixed mock tests requiring go 1.18 * updated openapi, integrated overrides upstream, added new override to fix codegen bug * added nil check * fixed routes
81 lines
2.7 KiB
Go
81 lines
2.7 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/influxdata/influx-cli/v2/api (interfaces: DeleteApi)
|
|
|
|
// Package mock is a generated GoMock package.
|
|
package mock
|
|
|
|
import (
|
|
context "context"
|
|
http "net/http"
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
api "github.com/influxdata/influx-cli/v2/api"
|
|
)
|
|
|
|
// MockDeleteApi is a mock of DeleteApi interface.
|
|
type MockDeleteApi struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockDeleteApiMockRecorder
|
|
}
|
|
|
|
// MockDeleteApiMockRecorder is the mock recorder for MockDeleteApi.
|
|
type MockDeleteApiMockRecorder struct {
|
|
mock *MockDeleteApi
|
|
}
|
|
|
|
// NewMockDeleteApi creates a new mock instance.
|
|
func NewMockDeleteApi(ctrl *gomock.Controller) *MockDeleteApi {
|
|
mock := &MockDeleteApi{ctrl: ctrl}
|
|
mock.recorder = &MockDeleteApiMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockDeleteApi) EXPECT() *MockDeleteApiMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// PostDelete mocks base method.
|
|
func (m *MockDeleteApi) PostDelete(arg0 context.Context) api.ApiPostDeleteRequest {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "PostDelete", arg0)
|
|
ret0, _ := ret[0].(api.ApiPostDeleteRequest)
|
|
return ret0
|
|
}
|
|
|
|
// PostDelete indicates an expected call of PostDelete.
|
|
func (mr *MockDeleteApiMockRecorder) PostDelete(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostDelete", reflect.TypeOf((*MockDeleteApi)(nil).PostDelete), arg0)
|
|
}
|
|
|
|
// PostDeleteExecute mocks base method.
|
|
func (m *MockDeleteApi) PostDeleteExecute(arg0 api.ApiPostDeleteRequest) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "PostDeleteExecute", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// PostDeleteExecute indicates an expected call of PostDeleteExecute.
|
|
func (mr *MockDeleteApiMockRecorder) PostDeleteExecute(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostDeleteExecute", reflect.TypeOf((*MockDeleteApi)(nil).PostDeleteExecute), arg0)
|
|
}
|
|
|
|
// PostDeleteExecuteWithHttpInfo mocks base method.
|
|
func (m *MockDeleteApi) PostDeleteExecuteWithHttpInfo(arg0 api.ApiPostDeleteRequest) (*http.Response, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "PostDeleteExecuteWithHttpInfo", arg0)
|
|
ret0, _ := ret[0].(*http.Response)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// PostDeleteExecuteWithHttpInfo indicates an expected call of PostDeleteExecuteWithHttpInfo.
|
|
func (mr *MockDeleteApiMockRecorder) PostDeleteExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostDeleteExecuteWithHttpInfo", reflect.TypeOf((*MockDeleteApi)(nil).PostDeleteExecuteWithHttpInfo), arg0)
|
|
}
|