testutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package testutil provides golden-file and temporary-directory helpers shared across gskill tests. It is imported only from _test.go files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Golden

func Golden(t *testing.T, name string, got []byte)

Golden compares got against the golden file at testdata/<name>. When -update is set it rewrites the golden file instead of asserting equality, so golden files can be regenerated with "go test -update".

func TempProject

func TempProject(t *testing.T) string

TempProject returns an isolated temporary directory usable as a gskill project root for a single test. The directory is removed when the test ends.

func Update

func Update() bool

Update reports whether the -update flag was set for this test run.

Types

This section is empty.

Jump to

Keyboard shortcuts

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