internal

package
v0.0.0-...-94c0bac Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertStatus

func AssertStatus(t *testing.T, resp *http.Response, want int)

func MakePOSTMultipart

func MakePOSTMultipart(t *testing.T, ts *httptest.Server, path string,
	fields map[string]string, files map[string]FileData) *http.Response

func MakeRequest

func MakeRequest(
	t *testing.T,
	ts *httptest.Server,
	method string,
	path string,
	headers map[string]string,
	cookies []*http.Cookie,
) *http.Response

func ReadBody

func ReadBody(t *testing.T, resp *http.Response) string

func SetupTestServer

func SetupTestServer(t *testing.T, mountRoutes func(*http.ServeMux)) *httptest.Server

Types

type FileData

type FileData struct {
	Filename string
	Content  []byte
}

Source Files

  • internal.go

Jump to

Keyboard shortcuts

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