Available on crate feature
test-utils
only.Expand description
Mock discovery support
Structs§
- Mock
Discovery - Mock discovery node
Enums§
- Mock
Command - Represents commands for interacting with the
MockDiscovery
service. - Mock
Event - Represents the event types produced by the mock service.
Functions§
- create_
discv4 - Creates a new testing instance for
Discv4
and its service - create_
discv4_ with_ config - Creates a new testing instance for
Discv4
and its service with the given config. - rng_
endpoint - Generates a random
NodeEndpoint
using the provided random number generator. - rng_
ipv4_ record - Generates a random IPv4
NodeRecord
using the provided random number generator. - rng_
ipv6_ record - Generates a random IPv6
NodeRecord
using the provided random number generator. - rng_
message - Generates a random
Message
using the provided random number generator. - rng_
record - Generates a random
NodeRecord
using the provided random number generator.