Documentation
¶
Index ¶
- func ConnectionBenchmark(b *testing.B, options *Options)
- func ConnectionTest(t *testing.T, options *Options)
- func MulticastTest(t *testing.T, options *Options)
- func ReadBlock(r io.Reader) ([]byte, error)
- func RequireReadBlock(tb testing.TB, r io.Reader) []byte
- func RequireWriteBlock(tb testing.TB, w io.Writer, data []byte)
- func WriteBlock(w io.Writer, data []byte) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectionBenchmark ¶
ConnectionBenchmark runs a connection benchmark.
func ConnectionTest ¶
ConnectionTest runs a connection test.
func MulticastTest ¶
MulticastTest runs a multicast test suite with the provided options.
func RequireReadBlock ¶
RequireReadBlock runs ReadBlock and fails the provided test/brenchmark in case of an error.
func RequireWriteBlock ¶
RequireWriteBlock runs WriteBlock and fails the provided test/brenchmark in case of an error.
Types ¶
type Options ¶
type Options struct {
ListenNetwork string
ListenAddress string
ListenOptions []value.Option
DialNetwork string
DialOptions []value.Option
MulticastNetwork string
MulticastRequestAddress string
MulticastResponseAddress string
MulticastOptions []value.Option
}
Options holds the test options.
Click to show internal directories.
Click to hide internal directories.