test

package
v0.2.0 Latest Latest
Warning

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

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

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