test

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package test exposes Paper's golden-structure test helper for library consumers. It is a thin re-export of the canonical implementation in internal/test, kept dependency-free so importing it never adds third-party modules to a consumer's build.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCannotReadDir = test.ErrCannotReadDir
	ErrGoModNotFound = test.ErrGoModNotFound
)

Errors returned while resolving the golden-file directory.

Functions

This section is empty.

Types

type Config

type Config = test.Config

Config is the representation of a test config.

type Node

type Node = test.Node

Node is the JSON shape used to compare document structures.

type PaperTest

type PaperTest = test.PaperTest

PaperTest is the unit test instance.

func New

func New(t *testing.T) *PaperTest

New creates the PaperTest instance for unit tests.

Jump to

Keyboard shortcuts

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