testutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TempFilename

func TempFilename(t *testing.T, dir, pattern string) string

TempFilename choose a name for a temporary file to be created by the caller.

Types

type TempFile

type TempFile struct {
	// contains filtered or unexported fields
}

TempFile represents a temporary file.

func NewTempFile

func NewTempFile(t *testing.T, dir, pattern string) *TempFile

NewTempFile creates a TempFile.

func (*TempFile) CloseAndRemove

func (tf *TempFile) CloseAndRemove()

CloseAndRemove closes and removes a TempFile.

func (*TempFile) Name

func (tf *TempFile) Name() string

Name returns the name of TempFile.

Jump to

Keyboard shortcuts

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