testutil

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package testutil provides test helpers for pxar packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAll

func ReadAll(tb testing.TB, r io.ReadCloser, err error) []byte

ReadAll is a test helper that streams file content from a reader returned by ArchiveReader.ReadFileContentReader and fails the test on error. Usage:

r, err := reader.ReadFileContentReader(entry)
content := testutil.ReadAll(t, r, err)

Types

This section is empty.

Jump to

Keyboard shortcuts

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