testutils

package
v0.0.0-...-39d5f47 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRandomFile

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

func CreateTmpCacheDirs

func CreateTmpCacheDirs(t *testing.T) string

func EnsureDirExists

func EnsureDirExists(path 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