Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultipartImage ¶
type MultipartImage struct { ImageFile *os.File MultipartBody *bytes.Buffer ContentType string // contains filtered or unexported fields }
MultipartImage used for instantiating a test fixture for creating multipart file uploads containing an image
func NewMultipartImage ¶
func NewMultipartImage(fileName string, contentType string) *MultipartImage
NewMultipartImage creates an image file for testing and creates a Multipart Form with this image file for testing
func (*MultipartImage) GetFormFile ¶
func (m *MultipartImage) GetFormFile() *multipart.FileHeader
GetFormFile extracts form file from multipart body
Click to show internal directories.
Click to hide internal directories.