forgetest

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(expected interface{}, actual interface{}) error

func MockRoundTripperQueue

func MockRoundTripperQueue(t *testing.T, queue []MockRoundTripFunc) http.RoundTripper

Types

type AssertFailure

type AssertFailure struct {
	Expected interface{}
	Actual   interface{}
}

type MockRoundTripFunc

type MockRoundTripFunc func(t *testing.T, request *http.Request) (*http.Response, error)

type MockableRoundTripper

type MockableRoundTripper struct {
	RoundTripFunc func(*http.Request) (*http.Response, error)
}

func (MockableRoundTripper) RoundTrip

func (mockable MockableRoundTripper) RoundTrip(request *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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