testing

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempFile

func CreateTempFile() (*os.File, error)

CreateTempFile creates a temp file for testing.

func GetTarBzip2FilePath

func GetTarBzip2FilePath() (string, error)

GetTarBzip2FilePath gets .tar.bz2 test asset file.

func GetTarFilePath

func GetTarFilePath() (string, error)

GetTarFilePath gets the .tar test asset file.

func GetTarGzFilePath

func GetTarGzFilePath() (string, error)

GetTarGzFilePath gets the .tar.gz test asset file.

func GetZipFilePath

func GetZipFilePath() (string, error)

GetZipFilePath gets the .zip test asset file.

func WriteTempFile

func WriteTempFile(content string) (*os.File, error)

WriteTempFile writes the contents to a file for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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