testformfile

package
v0.0.0-...-b7dc2fe Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFormFile

func NewFormFile(t *testing.T, cwd, filename string) *formfile.FormFile

NewFormFile is a helper to create a formfile that can be used in a param struct

func NewMultipartData

func NewMultipartData(t *testing.T, cwd, filename string) (header *multipart.FileHeader, file *os.File)

NewMultipartData is a helper to generate multipart data that can be returned by FileHolder.FormFile()

Types

This section is empty.

Jump to

Keyboard shortcuts

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