Versions in this module Expand all Collapse all v0 v0.2.1 Jul 12, 2019 v0.2.0 Jul 4, 2019 Changes in this version type MockFile + func (file *MockFile) Content() string v0.1.0 Jul 3, 2019 Changes in this version + func CopyFile(src string, dst string) error + func EnsureDir(directory string) + func Exists(pathname string) bool + func ListDirectory(root string) []string + func MustClose(f io.Closer) + func MustCopyFile(src string, dst string) + func ReadLines(path string) ([]string, error) + type FileHash struct + func NewFileHashMD5() *FileHash + func NewFileHashSHA1() *FileHash + func (fh *FileHash) FromFile(path string) (string, error) + type MockDirectory string + func (dir MockDirectory) MustCreate(t *testing.T) + func (dir MockDirectory) MustRemove(t *testing.T) + func (dir MockDirectory) Pathname() string + type MockFile struct + func NewMockFile(path, content string) *MockFile + func (file *MockFile) MustCreate(t *testing.T) + func (file *MockFile) MustRemove(t *testing.T) + func (file *MockFile) Pathname() string