testsupport

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT 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 {
	mock.Mock
}

MockWriter is a mock implementation of io.Writer.

func NewMockWriter

func NewMockWriter(t *testing.T) *MockWriter

NewMockWriter creates a new MockWriter and registers it with t.

func (*MockWriter) Write

func (m *MockWriter) Write(bs []byte) (int, error)

Write registers a call to itself and returns what it was mocked to return.

Jump to

Keyboard shortcuts

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