Files
node/message/mock_message.go
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

96 lines
3.0 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/luxfi/node/message (interfaces: OutboundMessage)
//
// Generated by this command:
//
// mockgen -package=message -destination=message/mock_message.go github.com/luxfi/node/message OutboundMessage
//
// Package message is a generated GoMock package.
package message
import (
reflect "reflect"
gomock "github.com/luxfi/mock/gomock"
)
// MockOutboundMessage is a mock of OutboundMessage interface.
type MockOutboundMessage struct {
ctrl *gomock.Controller
recorder *MockOutboundMessageMockRecorder
}
// MockOutboundMessageMockRecorder is the mock recorder for MockOutboundMessage.
type MockOutboundMessageMockRecorder struct {
mock *MockOutboundMessage
}
// NewMockOutboundMessage creates a new mock instance.
func NewMockOutboundMessage(ctrl *gomock.Controller) *MockOutboundMessage {
mock := &MockOutboundMessage{ctrl: ctrl}
mock.recorder = &MockOutboundMessageMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockOutboundMessage) EXPECT() *MockOutboundMessageMockRecorder {
return m.recorder
}
// BypassThrottling mocks base method.
func (m *MockOutboundMessage) BypassThrottling() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BypassThrottling")
ret0, _ := ret[0].(bool)
return ret0
}
// BypassThrottling indicates an expected call of BypassThrottling.
func (mr *MockOutboundMessageMockRecorder) BypassThrottling() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BypassThrottling", reflect.TypeOf((*MockOutboundMessage)(nil).BypassThrottling))
}
// Bytes mocks base method.
func (m *MockOutboundMessage) Bytes() []byte {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Bytes")
ret0, _ := ret[0].([]byte)
return ret0
}
// Bytes indicates an expected call of Bytes.
func (mr *MockOutboundMessageMockRecorder) Bytes() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bytes", reflect.TypeOf((*MockOutboundMessage)(nil).Bytes))
}
// BytesSavedCompression mocks base method.
func (m *MockOutboundMessage) BytesSavedCompression() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BytesSavedCompression")
ret0, _ := ret[0].(int)
return ret0
}
// BytesSavedCompression indicates an expected call of BytesSavedCompression.
func (mr *MockOutboundMessageMockRecorder) BytesSavedCompression() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BytesSavedCompression", reflect.TypeOf((*MockOutboundMessage)(nil).BytesSavedCompression))
}
// Op mocks base method.
func (m *MockOutboundMessage) Op() Op {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Op")
ret0, _ := ret[0].(Op)
return ret0
}
// Op indicates an expected call of Op.
func (mr *MockOutboundMessageMockRecorder) Op() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Op", reflect.TypeOf((*MockOutboundMessage)(nil).Op))
}