Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OS       = InjectableOS{}
	IOReader = InjectableIOReader{}
)

Functions

func OpenLogFile

func OpenLogFile(filePath string) (*os.File, error)

Types

type FileOrString

type FileOrString string

func (FileOrString) Bytes

func (f FileOrString) Bytes(statter Statter, reader FileReader) ([]byte, error)

type FileReader

type FileReader interface {
	ReadFile(string) ([]byte, error)
}

type InjectableIOReader

type InjectableIOReader struct{}

func (InjectableIOReader) ReadFile

func (InjectableIOReader) ReadFile(filename string) ([]byte, error)

type InjectableOS

type InjectableOS struct{}

func (InjectableOS) Stat

func (InjectableOS) Stat(name string) (os.FileInfo, error)

type Statter

type Statter interface {
	Stat(string) (os.FileInfo, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.