testutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilesEqual

func FilesEqual(t *testing.T, f1, f2 io.ReadSeeker) bool

func MustCreateImagePNG

func MustCreateImagePNG(t *testing.T, pixelsSize int) *os.File

MustCreateImagePNG creates a temporary PNG image with a red line and transparent background. The file is automatically removed after the test is completed.

func MustCreateTempFile

func MustCreateTempFile(t *testing.T, bytesSize int) *os.File

MustCreateTempFile creates a temporary file with random data. The file is automatically removed after the test is completed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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