mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
* Use formance-sdk-go/v3 to in connector uninstall e2e test * Compile API docs from openapi spec * Generate go SDK locally for use in integration tests * Get rid of unnecessary redirect in e2e tests now that SDK is generated * Omit generated SDK code from codecoverage checks * Add flake and envrc for nix * Run Dirty and Tests CI steps with nix * Run pre-commit using nix * Remove duplicated steps from Earthfile * Fixes for linter * Add go generate to Justfile pre-commit * Still run Deploy on ubuntu-latest * Address coderabbit feedback
99 lines
3.1 KiB
Go
99 lines
3.1 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: plugin.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source plugin.go -destination plugin_generated.go -package plugins . Plugins
|
|
//
|
|
|
|
// Package plugins is a generated GoMock package.
|
|
package plugins
|
|
|
|
import (
|
|
json "encoding/json"
|
|
reflect "reflect"
|
|
|
|
models "github.com/formancehq/payments/internal/models"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockPlugins is a mock of Plugins interface.
|
|
type MockPlugins struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockPluginsMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockPluginsMockRecorder is the mock recorder for MockPlugins.
|
|
type MockPluginsMockRecorder struct {
|
|
mock *MockPlugins
|
|
}
|
|
|
|
// NewMockPlugins creates a new mock instance.
|
|
func NewMockPlugins(ctrl *gomock.Controller) *MockPlugins {
|
|
mock := &MockPlugins{ctrl: ctrl}
|
|
mock.recorder = &MockPluginsMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockPlugins) EXPECT() *MockPluginsMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Get mocks base method.
|
|
func (m *MockPlugins) Get(arg0 models.ConnectorID) (models.Plugin, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Get", arg0)
|
|
ret0, _ := ret[0].(models.Plugin)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Get indicates an expected call of Get.
|
|
func (mr *MockPluginsMockRecorder) Get(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockPlugins)(nil).Get), arg0)
|
|
}
|
|
|
|
// GetConfig mocks base method.
|
|
func (m *MockPlugins) GetConfig(arg0 models.ConnectorID) (models.Config, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetConfig", arg0)
|
|
ret0, _ := ret[0].(models.Config)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetConfig indicates an expected call of GetConfig.
|
|
func (mr *MockPluginsMockRecorder) GetConfig(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfig", reflect.TypeOf((*MockPlugins)(nil).GetConfig), arg0)
|
|
}
|
|
|
|
// RegisterPlugin mocks base method.
|
|
func (m *MockPlugins) RegisterPlugin(arg0 models.ConnectorID, arg1, arg2 string, arg3 models.Config, arg4 json.RawMessage, arg5 bool) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RegisterPlugin", arg0, arg1, arg2, arg3, arg4, arg5)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// RegisterPlugin indicates an expected call of RegisterPlugin.
|
|
func (mr *MockPluginsMockRecorder) RegisterPlugin(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterPlugin", reflect.TypeOf((*MockPlugins)(nil).RegisterPlugin), arg0, arg1, arg2, arg3, arg4, arg5)
|
|
}
|
|
|
|
// UnregisterPlugin mocks base method.
|
|
func (m *MockPlugins) UnregisterPlugin(arg0 models.ConnectorID) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "UnregisterPlugin", arg0)
|
|
}
|
|
|
|
// UnregisterPlugin indicates an expected call of UnregisterPlugin.
|
|
func (mr *MockPluginsMockRecorder) UnregisterPlugin(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnregisterPlugin", reflect.TypeOf((*MockPlugins)(nil).UnregisterPlugin), arg0)
|
|
}
|