test

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockReadCloser

type MockReadCloser struct {
	MockData     []byte
	MockReadErr  error
	MockCloseErr error
}

func (*MockReadCloser) Close

func (mrc *MockReadCloser) Close() error

Close simply returns the expected close err from a test

func (*MockReadCloser) Read

func (mrc *MockReadCloser) Read(buf []byte) (n int, err error)

Read copies a tests expected data and returns an expectedError

Jump to

Keyboard shortcuts

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