package tartest
import "git.jakstys.lt/motiejus/undocker/rootfs/internal/tartest"
Index ¶
Types ¶
type Dir ¶
Dir is a tarrable directory representation
func (Dir) Tar ¶
Tar tars the Dir
type Extractable ¶
type Extractable interface{}
Extractable is an empty interface for comparing extracted outputs in tests. Using that just to avoid the ugly `interface{}`.
func Extract ¶
func Extract(t *testing.T, r io.Reader) []Extractable
Extract extracts a tarball to a slice of extractables
type File ¶
File is a tarrable file representation
func (File) Tar ¶
Tar tars the File
type Hardlink ¶
Hardlink is a representation of a hardlink
func (Hardlink) Tar ¶
Tar tars the Hardlink
type Tarball ¶
type Tarball []Tarrer
Tarball is a list of tarrables
func (Tarball) Buffer ¶
Buffer returns a byte buffer
func (Tarball) Gzip ¶
Gzip returns a gzipped buffer
type Tarrer ¶
Tarrer is an object that can tar itself to an archive
Source Files ¶
tartest.go
- Version
- v1.2.3 (latest)
- Published
- Sep 10, 2024
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 3 weeks ago –
Tools for package owners.