mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
- go.mod module path + all self-imports: github.com/formancehq/payments -> github.com/hanzo-fi/payments (1590 .go files / 3152 refs; 20 modules: root, pkg/client, pkg/domain, 18 ce/plugins). External dep kept: formancehq/go-libs. - plugins: each ce/plugins/* consumed a *published* pkg/domain; added local 'replace .../pkg/domain => ../../../pkg/domain' (consistent with root) so every standalone plugin module builds in-monorepo. compile-plugin.sh MOD var rebranded too. - branding: README, LICENSE (dual MIT+EE; upstream copyright retained + Hanzo added), goreleaser (release images -> registry.hanzo.ai/hanzo-fi, OCI labels, homepage), proto go_package, renovate, speakeasy gen.yaml, connector-template *.gotpl. - CI: removed Numary/Formance workflows + composite action; added canonical hanzo.yml + cicd.yml (hanzoai/ci, gated HANZO_CI_ENABLED) + secretless ci.yml (go build/vet). - kept as data/compat keys: wire capability enums ALLOW_FORMANCE_*, generated SDK type client.Formance, domain field FormanceRedirectURL, OTEL_SERVICE_NAME, upstream base image. - verified: go build ./... (default + -tags ee) + all 20 nested modules green.
115 lines
3.5 KiB
Go
115 lines
3.5 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: manager.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source manager.go -destination manager_generated.go -package connectors . Manager
|
|
//
|
|
|
|
// Package connectors is a generated GoMock package.
|
|
package connectors
|
|
|
|
import (
|
|
json "encoding/json"
|
|
reflect "reflect"
|
|
|
|
models "github.com/hanzo-fi/payments/pkg/domain/models"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockManager is a mock of Manager interface.
|
|
type MockManager struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockManagerMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockManagerMockRecorder is the mock recorder for MockManager.
|
|
type MockManagerMockRecorder struct {
|
|
mock *MockManager
|
|
}
|
|
|
|
// NewMockManager creates a new mock instance.
|
|
func NewMockManager(ctrl *gomock.Controller) *MockManager {
|
|
mock := &MockManager{ctrl: ctrl}
|
|
mock.recorder = &MockManagerMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockManager) EXPECT() *MockManagerMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// DefaultConfig mocks base method.
|
|
func (m *MockManager) DefaultConfig() models.Config {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "DefaultConfig")
|
|
ret0, _ := ret[0].(models.Config)
|
|
return ret0
|
|
}
|
|
|
|
// DefaultConfig indicates an expected call of DefaultConfig.
|
|
func (mr *MockManagerMockRecorder) DefaultConfig() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultConfig", reflect.TypeOf((*MockManager)(nil).DefaultConfig))
|
|
}
|
|
|
|
// Get mocks base method.
|
|
func (m *MockManager) 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 *MockManagerMockRecorder) Get(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockManager)(nil).Get), arg0)
|
|
}
|
|
|
|
// GetConfig mocks base method.
|
|
func (m *MockManager) 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 *MockManagerMockRecorder) GetConfig(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfig", reflect.TypeOf((*MockManager)(nil).GetConfig), arg0)
|
|
}
|
|
|
|
// Load mocks base method.
|
|
func (m *MockManager) Load(arg0 models.Connector, arg1, arg2 bool) (string, json.RawMessage, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Load", arg0, arg1, arg2)
|
|
ret0, _ := ret[0].(string)
|
|
ret1, _ := ret[1].(json.RawMessage)
|
|
ret2, _ := ret[2].(error)
|
|
return ret0, ret1, ret2
|
|
}
|
|
|
|
// Load indicates an expected call of Load.
|
|
func (mr *MockManagerMockRecorder) Load(arg0, arg1, arg2 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Load", reflect.TypeOf((*MockManager)(nil).Load), arg0, arg1, arg2)
|
|
}
|
|
|
|
// Unload mocks base method.
|
|
func (m *MockManager) Unload(arg0 models.ConnectorID) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "Unload", arg0)
|
|
}
|
|
|
|
// Unload indicates an expected call of Unload.
|
|
func (mr *MockManagerMockRecorder) Unload(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unload", reflect.TypeOf((*MockManager)(nil).Unload), arg0)
|
|
}
|