oswrapper

package
v1.18.0-coveo.4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more 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