Files
CrimsonandGitHub 61cae8af0a chore: Move all CE plugins to own go modules (#780)
* Move all public connectors to ce/plugins

* Update tooling to account for new go modules under ce

* Ensure we test all CE plugins in CI

* Move Dummypay to ce/plugins for simplicity's sake in the generation scripts

* Use versioned pkg/domain in plugins

* Ensure that renovate updates all CE plugins in a single PR when pkg/domain tags are pushed to github

* Ensure Justfile commands work over all CE plugins

* Copy ce plugin go.mods in dev.Dockerfile

* Only add a go.mod for new plugins if they are ce

* Ensure generated generic client structs are named correctly for submodule

* Add coverprofile for each ce plugin

* Add set -e for Justfile for loops over plugins

* Infer go version from flake.nix in connector template tool
2026-07-01 14:53:02 +00:00

112 lines
4.1 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: backend.go
//
// Generated by this command:
//
// mockgen -source backend.go -destination backend_generated.go -package client . Backend
//
// Package client is a generated GoMock package.
package client
import (
bytes "bytes"
reflect "reflect"
stripe "github.com/stripe/stripe-go/v80"
form "github.com/stripe/stripe-go/v80/form"
gomock "go.uber.org/mock/gomock"
)
// MockBackend is a mock of Backend interface.
type MockBackend struct {
ctrl *gomock.Controller
recorder *MockBackendMockRecorder
isgomock struct{}
}
// MockBackendMockRecorder is the mock recorder for MockBackend.
type MockBackendMockRecorder struct {
mock *MockBackend
}
// NewMockBackend creates a new mock instance.
func NewMockBackend(ctrl *gomock.Controller) *MockBackend {
mock := &MockBackend{ctrl: ctrl}
mock.recorder = &MockBackendMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockBackend) EXPECT() *MockBackendMockRecorder {
return m.recorder
}
// Call mocks base method.
func (m *MockBackend) Call(method, path, key string, params stripe.ParamsContainer, v stripe.LastResponseSetter) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Call", method, path, key, params, v)
ret0, _ := ret[0].(error)
return ret0
}
// Call indicates an expected call of Call.
func (mr *MockBackendMockRecorder) Call(method, path, key, params, v any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Call", reflect.TypeOf((*MockBackend)(nil).Call), method, path, key, params, v)
}
// CallMultipart mocks base method.
func (m *MockBackend) CallMultipart(method, path, key, boundary string, body *bytes.Buffer, params *stripe.Params, v stripe.LastResponseSetter) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CallMultipart", method, path, key, boundary, body, params, v)
ret0, _ := ret[0].(error)
return ret0
}
// CallMultipart indicates an expected call of CallMultipart.
func (mr *MockBackendMockRecorder) CallMultipart(method, path, key, boundary, body, params, v any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CallMultipart", reflect.TypeOf((*MockBackend)(nil).CallMultipart), method, path, key, boundary, body, params, v)
}
// CallRaw mocks base method.
func (m *MockBackend) CallRaw(arg0, arg1, arg2 string, arg3 *form.Values, arg4 *stripe.Params, arg5 stripe.LastResponseSetter) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CallRaw", arg0, arg1, arg2, arg3, arg4, arg5)
ret0, _ := ret[0].(error)
return ret0
}
// CallRaw indicates an expected call of CallRaw.
func (mr *MockBackendMockRecorder) CallRaw(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CallRaw", reflect.TypeOf((*MockBackend)(nil).CallRaw), arg0, arg1, arg2, arg3, arg4, arg5)
}
// CallStreaming mocks base method.
func (m *MockBackend) CallStreaming(method, path, key string, params stripe.ParamsContainer, v stripe.StreamingLastResponseSetter) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CallStreaming", method, path, key, params, v)
ret0, _ := ret[0].(error)
return ret0
}
// CallStreaming indicates an expected call of CallStreaming.
func (mr *MockBackendMockRecorder) CallStreaming(method, path, key, params, v any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CallStreaming", reflect.TypeOf((*MockBackend)(nil).CallStreaming), method, path, key, params, v)
}
// SetMaxNetworkRetries mocks base method.
func (m *MockBackend) SetMaxNetworkRetries(maxNetworkRetries int64) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetMaxNetworkRetries", maxNetworkRetries)
}
// SetMaxNetworkRetries indicates an expected call of SetMaxNetworkRetries.
func (mr *MockBackendMockRecorder) SetMaxNetworkRetries(maxNetworkRetries any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMaxNetworkRetries", reflect.TypeOf((*MockBackend)(nil).SetMaxNetworkRetries), maxNetworkRetries)
}