Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Nodes ¶ added in v0.49.1
Nodes returns n netmap.NodeInfo elements with unique public keys.
Each node has two network addresses with localhost IP. Ports are sequential starting from 10000.
func RandByteSlice ¶
func RandByteSlice[I constraints.Integer](ln I) []byte
RandByteSlice returns randomized byte slice of specified length.
Types ¶
type LogBuffer ¶ added in v0.49.1
type LogBuffer struct {
// contains filtered or unexported fields
}
LogBuffer is a memory buffer for zap.Logger entries.
func NewBufferedLogger ¶ added in v0.49.1
NewBufferedLogger returns buffered logger for testing.
Entries with severity less than minLevel are never written.
func (*LogBuffer) AssertContains ¶ added in v0.49.1
AssertContains asserts that log contains at least one entry with given message.
func (*LogBuffer) AssertEmpty ¶ added in v0.49.1
func (x *LogBuffer) AssertEmpty()
AssertEmpty asserts that log is empty.
func (*LogBuffer) AssertEqual ¶ added in v0.49.1
AssertEqual asserts that log consists of given ordered entries.
func (*LogBuffer) AssertSingle ¶ added in v0.49.1
AssertSingle asserts that log has given entry only.
Click to show internal directories.
Click to hide internal directories.