mirror of
https://github.com/luxfi/node.git
synced 2026-10-30 15:24:05 +00:00
The module already called itself github.com/luxfi/node while containing no node in Go: cmd/luxd was twenty-one lines that printed the size of a few types, and the Go column of the matrix measured a VM plugin. A repo that fetches the thing it claims to be has not replaced it, so the Go sources move in — 1515 files, the daemon and everything under it — and the build reaches outside this module for nothing. Rust and C++ sit beside it unchanged and are still measured against it by the differential. That is the point of one repo: the reference implementation and the two ports are the same checkout, so parity is a thing you can run rather than a thing you assert. Verified: builds, and the closure carries no lux-private — checked at build time rather than believed. The daemon starts twelve chains on a local network (P X C Q Z A B G K M F, plus D through its plugin) and reports healthy.
73 lines
2.6 KiB
Go
73 lines
2.6 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/luxfi/node/vms/platformvm/utxo (interfaces: Verifier)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package=utxomock -destination=utxomock/verifier.go -mock_names=Verifier=Verifier . Verifier
|
|
//
|
|
|
|
// Package utxomock is a generated GoMock package.
|
|
package utxomock
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
ids "github.com/luxfi/ids"
|
|
verify "github.com/luxfi/node/vms/components/verify"
|
|
txs "github.com/luxfi/node/vms/platformvm/txs"
|
|
utxo "github.com/luxfi/utxo"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// Verifier is a mock of Verifier interface.
|
|
type Verifier struct {
|
|
ctrl *gomock.Controller
|
|
recorder *VerifierMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// VerifierMockRecorder is the mock recorder for Verifier.
|
|
type VerifierMockRecorder struct {
|
|
mock *Verifier
|
|
}
|
|
|
|
// NewVerifier creates a new mock instance.
|
|
func NewVerifier(ctrl *gomock.Controller) *Verifier {
|
|
mock := &Verifier{ctrl: ctrl}
|
|
mock.recorder = &VerifierMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *Verifier) EXPECT() *VerifierMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// VerifySpend mocks base method.
|
|
func (m *Verifier) VerifySpend(tx txs.UnsignedTx, utxoDB utxo.UTXOGetter, ins []*utxo.TransferableInput, outs []*utxo.TransferableOutput, creds []verify.Verifiable, unlockedProduced map[ids.ID]uint64) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "VerifySpend", tx, utxoDB, ins, outs, creds, unlockedProduced)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// VerifySpend indicates an expected call of VerifySpend.
|
|
func (mr *VerifierMockRecorder) VerifySpend(tx, utxoDB, ins, outs, creds, unlockedProduced any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifySpend", reflect.TypeOf((*Verifier)(nil).VerifySpend), tx, utxoDB, ins, outs, creds, unlockedProduced)
|
|
}
|
|
|
|
// VerifySpendUTXOs mocks base method.
|
|
func (m *Verifier) VerifySpendUTXOs(tx txs.UnsignedTx, utxos []*utxo.UTXO, ins []*utxo.TransferableInput, outs []*utxo.TransferableOutput, creds []verify.Verifiable, unlockedProduced map[ids.ID]uint64) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "VerifySpendUTXOs", tx, utxos, ins, outs, creds, unlockedProduced)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// VerifySpendUTXOs indicates an expected call of VerifySpendUTXOs.
|
|
func (mr *VerifierMockRecorder) VerifySpendUTXOs(tx, utxos, ins, outs, creds, unlockedProduced any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifySpendUTXOs", reflect.TypeOf((*Verifier)(nil).VerifySpendUTXOs), tx, utxos, ins, outs, creds, unlockedProduced)
|
|
}
|