Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(t *testing.T, implementation *ImplementationTester)
Types ¶
type ImplementationTester ¶
type ImplementationTester struct {
New func(t *testing.T) *TestedArchive
}
type TestedArchive ¶
type TestedArchive struct { OpenReadWriter func() archive.ReadWriter // Store file directly and skip archive driver implementation // in order to test correctness of archive implementation StoreFile func(path string, contents []byte) // Read contents of file directly and skip archive implementation // in order to test correctness of archive implementation ReadFileContents func(path string) []byte }
Click to show internal directories.
Click to hide internal directories.