mock

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

package mock contains several structs that are used in various unit tests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockResponseRecorder

type MockResponseRecorder struct {
	*httptest.ResponseRecorder

	// WriteError is an error that can be set to be returned by the Write method.
	WriteError error
}

MockResponseRecorder extends httptest.ResponseRecorder with errors that can be returned by various functions.

func (*MockResponseRecorder) Write

func (e *MockResponseRecorder) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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