testing

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ExpectedBodyNonEmpty = "*non-empty-body"

Variables

This section is empty.

Functions

func TestArgs

func TestArgs(t *testing.T, args *Args, serverUrl string)

Types

type Args

type Args struct {
	Method                    string
	Path                      string
	Headers                   [][2]string
	Body                      []byte
	ExpectedStatusCode        int
	ExpectedHeaders           [][2]string
	ExpectedHeadersPresent    []string
	ExpectedHeadersNotPresent []string
	ExpectedBody              []byte
	ExpectedProblemDetail     *problem_detail.Detail
	ExpectedClientDoError     error
}

Jump to

Keyboard shortcuts

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