Registry / testing / bradleyjkemp-cupaloy-v2

bradleyjkemp-cupaloy-v2

JSON →
library2.8.0gogounverified

Package cupaloy provides a simple API for snapshot testing in Go: test that your changes don't unexpectedly alter the results of your code.

go get github.com/bradleyjkemp/cupaloy/v2
INSTALL
IMPORT
SIG · BRADLEYJKEMP-CUPAL
B
bradleyjkemp-cupaloy-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.

cupaloy
github.com/bradleyjkemp/cupaloy/v2

Use snapshot testing to compare a string against a stored snapshot.

package main import ( "testing" "github.com/bradleyjkemp/cupaloy/v2" ) func TestSomething(t *testing.T) { result := "hello world" cupaloy.SnapshotT(t, result) }
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
18 hits · last 30 days
node
14
Amazon
1
Perplexity
1
OpenAI (training)
1
Resources
bradleyjkemp-cupaloy-v2 — go get bradleyjkemp-cupaloy-v2 · libregistry