testingutilities

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBody

func GenerateBody(t *testing.T, content string) (io.Reader, error)

Types

type FileInfo

type FileInfo struct {
	Content  bytes.Buffer
	MimeType string
}

type MultipartBody

type MultipartBody struct {
	Reader io.Reader
	Writer *multipart.Writer
}

func GenerateMultipart

func GenerateMultipart(t *testing.T, files map[string]FileInfo, content ...map[string]string) (MultipartBody, error)

Jump to

Keyboard shortcuts

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