mirror of
https://github.com/luxfi/platformvm.git
synced 2026-10-30 15:22:12 +00:00
- Drop atomic_block.go + legacy *_block_test.go (consolidated) - Add block/v0/ subdir + lift_v0.go for old version handling - Copyright header: 'Lux Industries, Inc.' → 'Lux Industries Inc' (no comma) - block_adapter.go: new adapter layer
140 lines
4.3 KiB
Go
140 lines
4.3 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/luxfi/node/vms/platformvm/fx (interfaces: Fx)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package=fxmock -destination=fxmock/fx.go -mock_names=Fx=Fx . Fx
|
|
//
|
|
|
|
// Package fxmock is a generated GoMock package.
|
|
package fxmock
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// Fx is a mock of Fx interface.
|
|
type Fx struct {
|
|
ctrl *gomock.Controller
|
|
recorder *FxMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// FxMockRecorder is the mock recorder for Fx.
|
|
type FxMockRecorder struct {
|
|
mock *Fx
|
|
}
|
|
|
|
// NewFx creates a new mock instance.
|
|
func NewFx(ctrl *gomock.Controller) *Fx {
|
|
mock := &Fx{ctrl: ctrl}
|
|
mock.recorder = &FxMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *Fx) EXPECT() *FxMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Bootstrapped mocks base method.
|
|
func (m *Fx) Bootstrapped() error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Bootstrapped")
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Bootstrapped indicates an expected call of Bootstrapped.
|
|
func (mr *FxMockRecorder) Bootstrapped() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrapped", reflect.TypeOf((*Fx)(nil).Bootstrapped))
|
|
}
|
|
|
|
// Bootstrapping mocks base method.
|
|
func (m *Fx) Bootstrapping() error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Bootstrapping")
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Bootstrapping indicates an expected call of Bootstrapping.
|
|
func (mr *FxMockRecorder) Bootstrapping() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrapping", reflect.TypeOf((*Fx)(nil).Bootstrapping))
|
|
}
|
|
|
|
// CreateOutput mocks base method.
|
|
func (m *Fx) CreateOutput(amount uint64, controlGroup any) (any, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CreateOutput", amount, controlGroup)
|
|
ret0, _ := ret[0].(any)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// CreateOutput indicates an expected call of CreateOutput.
|
|
func (mr *FxMockRecorder) CreateOutput(amount, controlGroup any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOutput", reflect.TypeOf((*Fx)(nil).CreateOutput), amount, controlGroup)
|
|
}
|
|
|
|
// Initialize mocks base method.
|
|
func (m *Fx) Initialize(vm any) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Initialize", vm)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Initialize indicates an expected call of Initialize.
|
|
func (mr *FxMockRecorder) Initialize(vm any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*Fx)(nil).Initialize), vm)
|
|
}
|
|
|
|
// VerifyPermission mocks base method.
|
|
func (m *Fx) VerifyPermission(tx, in, cred, controlGroup any) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "VerifyPermission", tx, in, cred, controlGroup)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// VerifyPermission indicates an expected call of VerifyPermission.
|
|
func (mr *FxMockRecorder) VerifyPermission(tx, in, cred, controlGroup any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyPermission", reflect.TypeOf((*Fx)(nil).VerifyPermission), tx, in, cred, controlGroup)
|
|
}
|
|
|
|
// VerifyTransfer mocks base method.
|
|
func (m *Fx) VerifyTransfer(tx, in, cred, utxo any) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "VerifyTransfer", tx, in, cred, utxo)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// VerifyTransfer indicates an expected call of VerifyTransfer.
|
|
func (mr *FxMockRecorder) VerifyTransfer(tx, in, cred, utxo any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyTransfer", reflect.TypeOf((*Fx)(nil).VerifyTransfer), tx, in, cred, utxo)
|
|
}
|
|
|
|
// VerifyOperation mocks base method.
|
|
func (m *Fx) VerifyOperation(tx, op, cred any, utxos []any) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "VerifyOperation", tx, op, cred, utxos)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// VerifyOperation indicates an expected call of VerifyOperation.
|
|
func (mr *FxMockRecorder) VerifyOperation(tx, op, cred, utxos any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyOperation", reflect.TypeOf((*Fx)(nil).VerifyOperation), tx, op, cred, utxos)
|
|
}
|