Versions in this module Expand all Collapse all v1 v1.1.1 Jan 20, 2024 Changes in this version + func AssertExtensionStatsLogFile(t *testing.T, dir string, lines []string) v1.0.1 Dec 21, 2023 Changes in this version + func AssertContainedLogFile(t *testing.T, dir string, blocks []LogBlock, unique int, duplicates int, ...) + func AssertDuplicateLogFile(t *testing.T, dir string, blocks []LogBlock, unique int, duplicates int) + func AssertFilesExist(t *testing.T, basePath string, expectedFiles Files) + func AssertIntegrityFile(t *testing.T, dir string, expected []FileHash) + func AssertLogBlocks(t *testing.T, lines []string, blocks []LogBlock) (int, int, int) + func AssertLogFileNotExists(t *testing.T, dir string) + func AssertUpsertLogFile(t *testing.T, dir string, skipped int, new int, updated int, deleted int) + func AssertVerifyLogFile(t *testing.T, dir string, valid int, invalid int) + func CreateIntegrityFile(t *testing.T, dir string, fileHashes []FileHash) + func NormalizePath(path string) string + func RemoveFile(dir string, filename string) + func StaticContent(sizeInkB int) string + func UpdateFile(dir string, filename string, content string, modTime string) + type File struct + func NewFile(relativePath string, modTime string, content string) File + type FileHash struct + func NewFileHash(hash string, created string, modTime string, size string, relativePath string) FileHash + type Files []File + func CreateScenario(name string, files Files) (string, Files) + func (f *Files) Map() map[string]File + type LogBlock struct + func NewContainedLogBlock(hash string, relativePaths []string) LogBlock + func NewDuplicateLogBlock(hash string, relativePaths []string) LogBlock