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.
162 lines
5.2 KiB
Go
162 lines
5.2 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/luxfi/node/vms (interfaces: Manager)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -package=vmsmock -destination=vmsmock/manager.go -mock_names=Manager=Manager . Manager
|
|
//
|
|
|
|
// Package vmsmock is a generated GoMock package.
|
|
package vmsmock
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
ids "github.com/luxfi/ids"
|
|
manager "github.com/luxfi/vm/manager"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// Manager is a mock of Manager interface.
|
|
type Manager struct {
|
|
ctrl *gomock.Controller
|
|
recorder *ManagerMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// ManagerMockRecorder is the mock recorder for Manager.
|
|
type ManagerMockRecorder struct {
|
|
mock *Manager
|
|
}
|
|
|
|
// NewManager creates a new mock instance.
|
|
func NewManager(ctrl *gomock.Controller) *Manager {
|
|
mock := &Manager{ctrl: ctrl}
|
|
mock.recorder = &ManagerMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *Manager) EXPECT() *ManagerMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Alias mocks base method.
|
|
func (m *Manager) Alias(ctx context.Context, vmID ids.ID, alias string) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Alias", ctx, vmID, alias)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Alias indicates an expected call of Alias.
|
|
func (mr *ManagerMockRecorder) Alias(ctx, vmID, alias any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Alias", reflect.TypeOf((*Manager)(nil).Alias), ctx, vmID, alias)
|
|
}
|
|
|
|
// Aliases mocks base method.
|
|
func (m *Manager) Aliases(ctx context.Context, vmID ids.ID) ([]string, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Aliases", ctx, vmID)
|
|
ret0, _ := ret[0].([]string)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Aliases indicates an expected call of Aliases.
|
|
func (mr *ManagerMockRecorder) Aliases(ctx, vmID any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Aliases", reflect.TypeOf((*Manager)(nil).Aliases), ctx, vmID)
|
|
}
|
|
|
|
// GetFactory mocks base method.
|
|
func (m *Manager) GetFactory(ctx context.Context, vmID ids.ID) (manager.Factory, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetFactory", ctx, vmID)
|
|
ret0, _ := ret[0].(manager.Factory)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetFactory indicates an expected call of GetFactory.
|
|
func (mr *ManagerMockRecorder) GetFactory(ctx, vmID any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFactory", reflect.TypeOf((*Manager)(nil).GetFactory), ctx, vmID)
|
|
}
|
|
|
|
// ListFactories mocks base method.
|
|
func (m *Manager) ListFactories(ctx context.Context) ([]ids.ID, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ListFactories", ctx)
|
|
ret0, _ := ret[0].([]ids.ID)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// ListFactories indicates an expected call of ListFactories.
|
|
func (mr *ManagerMockRecorder) ListFactories(ctx any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListFactories", reflect.TypeOf((*Manager)(nil).ListFactories), ctx)
|
|
}
|
|
|
|
// Lookup mocks base method.
|
|
func (m *Manager) Lookup(ctx context.Context, alias string) (ids.ID, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Lookup", ctx, alias)
|
|
ret0, _ := ret[0].(ids.ID)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Lookup indicates an expected call of Lookup.
|
|
func (mr *ManagerMockRecorder) Lookup(ctx, alias any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Lookup", reflect.TypeOf((*Manager)(nil).Lookup), ctx, alias)
|
|
}
|
|
|
|
// PrimaryAlias mocks base method.
|
|
func (m *Manager) PrimaryAlias(ctx context.Context, vmID ids.ID) (string, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "PrimaryAlias", ctx, vmID)
|
|
ret0, _ := ret[0].(string)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// PrimaryAlias indicates an expected call of PrimaryAlias.
|
|
func (mr *ManagerMockRecorder) PrimaryAlias(ctx, vmID any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrimaryAlias", reflect.TypeOf((*Manager)(nil).PrimaryAlias), ctx, vmID)
|
|
}
|
|
|
|
// RegisterFactory mocks base method.
|
|
func (m *Manager) RegisterFactory(ctx context.Context, vmID ids.ID, factory manager.Factory) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RegisterFactory", ctx, vmID, factory)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// RegisterFactory indicates an expected call of RegisterFactory.
|
|
func (mr *ManagerMockRecorder) RegisterFactory(ctx, vmID, factory any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterFactory", reflect.TypeOf((*Manager)(nil).RegisterFactory), ctx, vmID, factory)
|
|
}
|
|
|
|
// Versions mocks base method.
|
|
func (m *Manager) Versions(ctx context.Context) (map[string]string, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Versions", ctx)
|
|
ret0, _ := ret[0].(map[string]string)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Versions indicates an expected call of Versions.
|
|
func (mr *ManagerMockRecorder) Versions(ctx any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Versions", reflect.TypeOf((*Manager)(nil).Versions), ctx)
|
|
}
|