testutils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCacheFile

func CreateCacheFile(dir string, size int64) (string, error)

func CreateRandomFile

func CreateRandomFile(dir string, size int64) (string, error)

func CreateTmpCacheDirs

func CreateTmpCacheDirs(t *testing.T) string

func NewSilentLogger

func NewSilentLogger() *log.Logger

NewSilentLogger returns a cheap logger that doesn't print anything, useful for tests.

func RandomDataAndHash

func RandomDataAndHash(size int64) ([]byte, string)

func TempDir

func TempDir(t *testing.T) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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