Registry / testing / sebdah-goldie-v2

sebdah-goldie-v2

JSON →
library2.8.0gogounverified

Provides test assertions based on golden files for comparing actual response data with expected output.

go get github.com/sebdah/goldie/v2
INSTALL
IMPORT
SIG · SEBDAH-GOLDIE-V2
S
sebdah-goldie-v2
testinggov2.8.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/v2

Uses goldie to assert that actual output matches a golden file.

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

No known issues recorded.

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

No dependency data recorded yet.

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