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

84 lines
2.2 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/luxfi/node/utils/resource (interfaces: User)
//
// Generated by this command:
//
// mockgen -package=resourcemock -destination=resourcemock/user.go -mock_names=User=User . User
//
// Package resourcemock is a generated GoMock package.
package resourcemock
import (
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// User is a mock of User interface.
type User struct {
ctrl *gomock.Controller
recorder *UserMockRecorder
isgomock struct{}
}
// UserMockRecorder is the mock recorder for User.
type UserMockRecorder struct {
mock *User
}
// NewUser creates a new mock instance.
func NewUser(ctrl *gomock.Controller) *User {
mock := &User{ctrl: ctrl}
mock.recorder = &UserMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *User) EXPECT() *UserMockRecorder {
return m.recorder
}
// AvailableDiskBytes mocks base method.
func (m *User) AvailableDiskBytes() uint64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AvailableDiskBytes")
ret0, _ := ret[0].(uint64)
return ret0
}
// AvailableDiskBytes indicates an expected call of AvailableDiskBytes.
func (mr *UserMockRecorder) AvailableDiskBytes() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AvailableDiskBytes", reflect.TypeOf((*User)(nil).AvailableDiskBytes))
}
// CPUUsage mocks base method.
func (m *User) CPUUsage() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CPUUsage")
ret0, _ := ret[0].(float64)
return ret0
}
// CPUUsage indicates an expected call of CPUUsage.
func (mr *UserMockRecorder) CPUUsage() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CPUUsage", reflect.TypeOf((*User)(nil).CPUUsage))
}
// DiskUsage mocks base method.
func (m *User) DiskUsage() (float64, float64) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DiskUsage")
ret0, _ := ret[0].(float64)
ret1, _ := ret[1].(float64)
return ret0, ret1
}
// DiskUsage indicates an expected call of DiskUsage.
func (mr *UserMockRecorder) DiskUsage() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiskUsage", reflect.TypeOf((*User)(nil).DiskUsage))
}