streams

package
v0.0.0-...-471dad9 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockWriter

type MockWriter struct {
	io.Writer
	// contains filtered or unexported fields
}

func (*MockWriter) AssertEmpty

func (writer *MockWriter) AssertEmpty() error

AssertEmpty makes sure that after testing, there's no more messages in the buffer.

func (*MockWriter) Pop

func (writer *MockWriter) Pop() ([]byte, error)

Pop removes the first operation written and returns it back to the user.

func (*MockWriter) Write

func (writer *MockWriter) Write(bytes []byte)

Write writes to the mock writer and stores it for later use.

Jump to

Keyboard shortcuts

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