testhelpers

package
v0.0.0-...-1c351ce Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDir

func IsDir(dirPath string) (bool, error)

IsDir return true of dir path is a dir and error if did not manage to do a stat call

func RandStringBytes

func RandStringBytes(n int) string

RandStringBytes return a random N strings

func ReadFile

func ReadFile(fileName string) string

ReadFile return content of a file as a string

func WriteFile

func WriteFile(fileName string, data []byte) error

WriteFile a byte of data into fileName return error if something went wrong

func WriteTmpFilecontent

func WriteTmpFilecontent(content []byte) string

WriteTmpFilecontent write content to a temp path

Types

This section is empty.

Jump to

Keyboard shortcuts

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