testing

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockResponder

type MockResponder struct {
	// contains filtered or unexported fields
}

MockResponder is a mock for `k8s.io/apiserver/pkg/registry/rest/rest.go:292 => Responder interface`

func NewResponder

func NewResponder(response *httptest.ResponseRecorder) *MockResponder

NewResponder creates an instance of MockResponder

func (*MockResponder) Error

func (f *MockResponder) Error(err error)

Error implements Responder interface

func (*MockResponder) Object

func (f *MockResponder) Object(statusCode int, obj runtime.Object)

Object implements Responder interface

Jump to

Keyboard shortcuts

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