oswrapper

package
v1.30.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File interface {
	Name() string
	Close() error
	Chmod(os.FileMode) error
	Write([]byte) (int, error)
	Sync() error
}

File wraps methods for os.File type

type OS

type OS interface {
	Create(string) (File, error)
	OpenFile(string, int, os.FileMode) (File, error)
	Rename(string, string) error
	MkdirAll(string, os.FileMode) error
	RemoveAll(string) error
	IsNotExist(error) bool
}

OS wraps methods from the 'os' package for testing

func NewOS

func NewOS() OS

Directories

Path Synopsis
Package mock_oswrapper is a generated GoMock package.
Package mock_oswrapper is a generated GoMock package.

Jump to

Keyboard shortcuts

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