filetest

package
v0.0.0-...-65a667d Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempOutTxtFile

func CreateTempOutTxtFile(t *testing.T, testdir, name string) *os.File

CreateTempOutTxtFile creates a temporary file for writing the outputs.

func FullTestFilePath

func FullTestFilePath(t *testing.T, testdir, name string) string

func IsSub

func IsSub(base, path string) bool

IsSub checks if the path is a subpath of the base path.

func IsValidTestSubPath

func IsValidTestSubPath(t *testing.T, path string) bool

func MkTestTmpDir

func MkTestTmpDir(t *testing.T, testdir, name string) string

MkTestTmpDir creates a temporary directiory for output files.

func ReadTestFile

func ReadTestFile(testdir, name string) ([]byte, error)

func ReadTestPNGFile

func ReadTestPNGFile(t *testing.T, testdir, name string) []byte

func RemoveTestFiles

func RemoveTestFiles(dir string, f *os.File) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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