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.
224 lines
6.8 KiB
Go
224 lines
6.8 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/luxfi/node/vms/platformvm/txs/mempool (interfaces: Mempool)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package=mempool -destination=vms/platformvm/txs/mempool/mock_mempool.go github.com/luxfi/node/vms/platformvm/txs/mempool Mempool
|
|
//
|
|
|
|
// Package mempool is a generated GoMock package.
|
|
package mempool
|
|
|
|
import (
|
|
reflect "reflect"
|
|
time "time"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
|
|
ids "github.com/luxfi/ids"
|
|
txs "github.com/luxfi/node/vms/platformvm/txs"
|
|
)
|
|
|
|
// MockMempool is a mock of Mempool interface.
|
|
type MockMempool struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockMempoolMockRecorder
|
|
}
|
|
|
|
// MockMempoolMockRecorder is the mock recorder for MockMempool.
|
|
type MockMempoolMockRecorder struct {
|
|
mock *MockMempool
|
|
}
|
|
|
|
// NewMockMempool creates a new mock instance.
|
|
func NewMockMempool(ctrl *gomock.Controller) *MockMempool {
|
|
mock := &MockMempool{ctrl: ctrl}
|
|
mock.recorder = &MockMempoolMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockMempool) EXPECT() *MockMempoolMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Add mocks base method.
|
|
func (m *MockMempool) Add(arg0 *txs.Tx) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Add", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Add indicates an expected call of Add.
|
|
func (mr *MockMempoolMockRecorder) Add(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockMempool)(nil).Add), arg0)
|
|
}
|
|
|
|
// DropExpiredStakerTxs mocks base method.
|
|
func (m *MockMempool) DropExpiredStakerTxs(arg0 time.Time) []ids.ID {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "DropExpiredStakerTxs", arg0)
|
|
ret0, _ := ret[0].([]ids.ID)
|
|
return ret0
|
|
}
|
|
|
|
// DropExpiredStakerTxs indicates an expected call of DropExpiredStakerTxs.
|
|
func (mr *MockMempoolMockRecorder) DropExpiredStakerTxs(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DropExpiredStakerTxs", reflect.TypeOf((*MockMempool)(nil).DropExpiredStakerTxs), arg0)
|
|
}
|
|
|
|
// Get mocks base method.
|
|
func (m *MockMempool) Get(arg0 ids.ID) (*txs.Tx, bool) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Get", arg0)
|
|
ret0, _ := ret[0].(*txs.Tx)
|
|
ret1, _ := ret[1].(bool)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Get indicates an expected call of Get.
|
|
func (mr *MockMempoolMockRecorder) Get(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockMempool)(nil).Get), arg0)
|
|
}
|
|
|
|
// GetDropReason mocks base method.
|
|
func (m *MockMempool) GetDropReason(arg0 ids.ID) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetDropReason", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// GetDropReason indicates an expected call of GetDropReason.
|
|
func (mr *MockMempoolMockRecorder) GetDropReason(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDropReason", reflect.TypeOf((*MockMempool)(nil).GetDropReason), arg0)
|
|
}
|
|
|
|
// Has mocks base method.
|
|
func (m *MockMempool) Has(arg0 ids.ID) bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Has", arg0)
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// Has indicates an expected call of Has.
|
|
func (mr *MockMempoolMockRecorder) Has(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Has", reflect.TypeOf((*MockMempool)(nil).Has), arg0)
|
|
}
|
|
|
|
// HasTxs mocks base method.
|
|
func (m *MockMempool) HasTxs() bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "HasTxs")
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// HasTxs indicates an expected call of HasTxs.
|
|
func (mr *MockMempoolMockRecorder) HasTxs() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasTxs", reflect.TypeOf((*MockMempool)(nil).HasTxs))
|
|
}
|
|
|
|
// Iterate mocks base method.
|
|
func (m *MockMempool) Iterate(arg0 func(*txs.Tx) bool) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "Iterate", arg0)
|
|
}
|
|
|
|
// Iterate indicates an expected call of Iterate.
|
|
func (mr *MockMempoolMockRecorder) Iterate(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Iterate", reflect.TypeOf((*MockMempool)(nil).Iterate), arg0)
|
|
}
|
|
|
|
// Len mocks base method.
|
|
func (m *MockMempool) Len() int {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Len")
|
|
ret0, _ := ret[0].(int)
|
|
return ret0
|
|
}
|
|
|
|
// Len indicates an expected call of Len.
|
|
func (mr *MockMempoolMockRecorder) Len() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Len", reflect.TypeOf((*MockMempool)(nil).Len))
|
|
}
|
|
|
|
// MarkDropped mocks base method.
|
|
func (m *MockMempool) MarkDropped(arg0 ids.ID, arg1 error) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "MarkDropped", arg0, arg1)
|
|
}
|
|
|
|
// MarkDropped indicates an expected call of MarkDropped.
|
|
func (mr *MockMempoolMockRecorder) MarkDropped(arg0, arg1 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkDropped", reflect.TypeOf((*MockMempool)(nil).MarkDropped), arg0, arg1)
|
|
}
|
|
|
|
// Peek mocks base method.
|
|
func (m *MockMempool) Peek() (*txs.Tx, bool) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Peek")
|
|
ret0, _ := ret[0].(*txs.Tx)
|
|
ret1, _ := ret[1].(bool)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Peek indicates an expected call of Peek.
|
|
func (mr *MockMempoolMockRecorder) Peek() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Peek", reflect.TypeOf((*MockMempool)(nil).Peek))
|
|
}
|
|
|
|
// PeekTxs mocks base method.
|
|
func (m *MockMempool) PeekTxs(arg0 int) []*txs.Tx {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "PeekTxs", arg0)
|
|
ret0, _ := ret[0].([]*txs.Tx)
|
|
return ret0
|
|
}
|
|
|
|
// PeekTxs indicates an expected call of PeekTxs.
|
|
func (mr *MockMempoolMockRecorder) PeekTxs(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PeekTxs", reflect.TypeOf((*MockMempool)(nil).PeekTxs), arg0)
|
|
}
|
|
|
|
// Remove mocks base method.
|
|
func (m *MockMempool) Remove(arg0 ...*txs.Tx) {
|
|
m.ctrl.T.Helper()
|
|
varargs := []any{}
|
|
for _, a := range arg0 {
|
|
varargs = append(varargs, a)
|
|
}
|
|
m.ctrl.Call(m, "Remove", varargs...)
|
|
}
|
|
|
|
// Remove indicates an expected call of Remove.
|
|
func (mr *MockMempoolMockRecorder) Remove(arg0 ...any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockMempool)(nil).Remove), arg0...)
|
|
}
|
|
|
|
// RequestBuildBlock mocks base method.
|
|
func (m *MockMempool) RequestBuildBlock(arg0 bool) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "RequestBuildBlock", arg0)
|
|
}
|
|
|
|
// RequestBuildBlock indicates an expected call of RequestBuildBlock.
|
|
func (mr *MockMempoolMockRecorder) RequestBuildBlock(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestBuildBlock", reflect.TypeOf((*MockMempool)(nil).RequestBuildBlock), arg0)
|
|
}
|