Documentation ¶
Overview ¶
Package archivetest contains the shared testing utility of all archive implementations
Index ¶
- func AddFile(archive archive.Writer, t *testing.T)
- func AddFileByPath(archive archive.Writer, t *testing.T)
- func GenerateTestFiles(t *testing.T, writer archive.Writer)
- func GetFile(t *testing.T, reader archive.Reader)
- func GetFiles(t *testing.T, reader archive.Reader)
- func GetSharedTestFiles() map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFile ¶
AddFile tests if a file can be added to the archive without errors and that the written size equals to the byte size
func AddFileByPath ¶
AddFileByPath tests if a file can be added to the archive without errors and that the written size equals to the byte size
func GenerateTestFiles ¶
GenerateTestFiles generates a new archive with the passed files
func GetSharedTestFiles ¶
GetSharedTestFiles returns the shared test files/file content for the unit tests
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.