iotest

package
v0.0.0-...-81bf280 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2017 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileInfo

func FileInfo(t *testing.T, fbytes []byte) os.FileInfo

FileInfo computes the os.FileInfo for a given byte slice.

func TempFile

func TempFile(t *testing.T) (*os.File, func())

TempFile creates a new temporary file for testing and returns the file pointer and a cleanup function for closing and removing the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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