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.
115 lines
3.6 KiB
Go
115 lines
3.6 KiB
Go
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/luxfi/node/vms/components/lux (interfaces: TransferableIn)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package=lux -destination=vms/components/lux/mock_transferable_in.go github.com/luxfi/node/vms/components/lux TransferableIn
|
|
//
|
|
|
|
// Package luxmock is a generated GoMock package.
|
|
package luxmock
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/luxfi/runtime"
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockTransferableIn is a mock of TransferableIn interface.
|
|
type MockTransferableIn struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockTransferableInMockRecorder
|
|
}
|
|
|
|
// MockTransferableInMockRecorder is the mock recorder for MockTransferableIn.
|
|
type MockTransferableInMockRecorder struct {
|
|
mock *MockTransferableIn
|
|
}
|
|
|
|
// NewMockTransferableIn creates a new mock instance.
|
|
func NewMockTransferableIn(ctrl *gomock.Controller) *MockTransferableIn {
|
|
mock := &MockTransferableIn{ctrl: ctrl}
|
|
mock.recorder = &MockTransferableInMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockTransferableIn) EXPECT() *MockTransferableInMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Amount mocks base method.
|
|
func (m *MockTransferableIn) Amount() uint64 {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Amount")
|
|
ret0, _ := ret[0].(uint64)
|
|
return ret0
|
|
}
|
|
|
|
// Amount indicates an expected call of Amount.
|
|
func (mr *MockTransferableInMockRecorder) Amount() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Amount", reflect.TypeOf((*MockTransferableIn)(nil).Amount))
|
|
}
|
|
|
|
// Cost mocks base method.
|
|
func (m *MockTransferableIn) Cost() (uint64, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Cost")
|
|
ret0, _ := ret[0].(uint64)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Cost indicates an expected call of Cost.
|
|
func (mr *MockTransferableInMockRecorder) Cost() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cost", reflect.TypeOf((*MockTransferableIn)(nil).Cost))
|
|
}
|
|
|
|
// InitRuntime mocks base method.
|
|
func (m *MockTransferableIn) InitRuntime(arg0 *runtime.Runtime) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "InitRuntime", arg0)
|
|
}
|
|
|
|
// InitRuntime indicates an expected call of InitRuntime.
|
|
func (mr *MockTransferableInMockRecorder) InitRuntime(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitRuntime", reflect.TypeOf((*MockTransferableIn)(nil).InitRuntime), arg0)
|
|
}
|
|
|
|
// Verify mocks base method.
|
|
func (m *MockTransferableIn) Verify() error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Verify")
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Verify indicates an expected call of Verify.
|
|
func (mr *MockTransferableInMockRecorder) Verify() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockTransferableIn)(nil).Verify))
|
|
}
|
|
|
|
// InitializeWithRuntime mocks base method.
|
|
func (m *MockTransferableIn) InitializeWithRuntime(ctx context.Context) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "InitializeWithRuntime", ctx)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// InitializeWithRuntime indicates an expected call of InitializeWithRuntime.
|
|
func (mr *MockTransferableInMockRecorder) InitializeWithRuntime(ctx interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitializeWithRuntime", reflect.TypeOf((*MockTransferableIn)(nil).InitializeWithRuntime), ctx)
|
|
}
|