testutil

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FramerRunTests

func FramerRunTests(t *testing.T, framer framerinterface.Framer)

FramerRunTests is an internal function that will run the tests on the given framer

func RandomBytes

func RandomBytes(len int) []byte

RandomBytes returns a slice of random bytes

Types

type LoopbackReadWriter

type LoopbackReadWriter struct {
	io.Reader
	io.WriteCloser
}

LoopbackReadWriter is a simple loopback pipe

func NewLoopback

func NewLoopback() *LoopbackReadWriter

NewLoopback creates a LoopbackReadWriter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL