Documentation ¶
Index ¶
- 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 AssertExtensionStatsLogFile(t *testing.T, dir string, lines []string)
- 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
- type FileHash
- type Files
- type LogBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertContainedLogFile ¶
func AssertDuplicateLogFile ¶
func AssertExtensionStatsLogFile ¶ added in v1.1.1
func AssertLogBlocks ¶
func AssertLogFileNotExists ¶
func AssertUpsertLogFile ¶
func AssertVerifyLogFile ¶
func CreateIntegrityFile ¶
func NormalizePath ¶
Normalizes static test data to fit the os specific notation
func RemoveFile ¶
func StaticContent ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.