Registry / testing / sebdah-goldie

sebdah-goldie

JSON →
library1.0.0gogounverified

Package goldie provides test assertions based on golden files for testing responses with larger data bodies.

go get github.com/sebdah/goldie
INSTALL
IMPORT
SIG · SEBDAH-GOLDIE
S
sebdah-goldie
testinggov1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

goldie
github.com/sebdah/goldie

Asserts that actual output matches a golden file.

package main import ( "testing" "github.com/sebdah/goldie" ) func TestSomething(t *testing.T) { actual := []byte("expected output") goldie.Assert(t, "testname", actual) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
sebdah-goldie — go get sebdah-goldie · libregistry