Files
zeekay 7cf87b230b node-unified is the node
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.
2026-09-07 16:15:25 -07:00

107 lines
3.3 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/luxfi/node/vms/xvm/metrics (interfaces: Metrics)
//
// Generated by this command:
//
// mockgen -package=metricsmock -destination=metricsmock/metrics.go -mock_names=Metrics=Metrics . Metrics
//
// Package metricsmock is a generated GoMock package.
package metricsmock
import (
reflect "reflect"
block "github.com/luxfi/node/vms/xvm/block"
txs "github.com/luxfi/node/vms/xvm/txs"
gomock "go.uber.org/mock/gomock"
)
// Metrics is a mock of Metrics interface.
type Metrics struct {
ctrl *gomock.Controller
recorder *MetricsMockRecorder
isgomock struct{}
}
// MetricsMockRecorder is the mock recorder for Metrics.
type MetricsMockRecorder struct {
mock *Metrics
}
// NewMetrics creates a new mock instance.
func NewMetrics(ctrl *gomock.Controller) *Metrics {
mock := &Metrics{ctrl: ctrl}
mock.recorder = &MetricsMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *Metrics) EXPECT() *MetricsMockRecorder {
return m.recorder
}
// IncTxRefreshHits mocks base method.
func (m *Metrics) IncTxRefreshHits() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "IncTxRefreshHits")
}
// IncTxRefreshHits indicates an expected call of IncTxRefreshHits.
func (mr *MetricsMockRecorder) IncTxRefreshHits() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncTxRefreshHits", reflect.TypeOf((*Metrics)(nil).IncTxRefreshHits))
}
// IncTxRefreshMisses mocks base method.
func (m *Metrics) IncTxRefreshMisses() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "IncTxRefreshMisses")
}
// IncTxRefreshMisses indicates an expected call of IncTxRefreshMisses.
func (mr *MetricsMockRecorder) IncTxRefreshMisses() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncTxRefreshMisses", reflect.TypeOf((*Metrics)(nil).IncTxRefreshMisses))
}
// IncTxRefreshes mocks base method.
func (m *Metrics) IncTxRefreshes() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "IncTxRefreshes")
}
// IncTxRefreshes indicates an expected call of IncTxRefreshes.
func (mr *MetricsMockRecorder) IncTxRefreshes() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncTxRefreshes", reflect.TypeOf((*Metrics)(nil).IncTxRefreshes))
}
// MarkBlockAccepted mocks base method.
func (m *Metrics) MarkBlockAccepted(b block.Block) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MarkBlockAccepted", b)
ret0, _ := ret[0].(error)
return ret0
}
// MarkBlockAccepted indicates an expected call of MarkBlockAccepted.
func (mr *MetricsMockRecorder) MarkBlockAccepted(b any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkBlockAccepted", reflect.TypeOf((*Metrics)(nil).MarkBlockAccepted), b)
}
// MarkTxAccepted mocks base method.
func (m *Metrics) MarkTxAccepted(tx *txs.Tx) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MarkTxAccepted", tx)
ret0, _ := ret[0].(error)
return ret0
}
// MarkTxAccepted indicates an expected call of MarkTxAccepted.
func (mr *MetricsMockRecorder) MarkTxAccepted(tx any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkTxAccepted", reflect.TypeOf((*Metrics)(nil).MarkTxAccepted), tx)
}