archivetest

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL