Registry / testing / gkampitakis-go-snaps

gkampitakis-go-snaps

JSON →
library0.5.22gogounverified

Go Snaps is a snapshot testing library for Go that simplifies writing and maintaining tests.

go get github.com/gkampitakis/go-snaps
INSTALL
IMPORT
SIG · GKAMPITAKIS-GO-SNA
G
gkampitakis-go-snaps
testinggov0.5.22
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.

snaps
github.com/gkampitakis/go-snaps

Basic snapshot test using MatchSnapshot.

package main import ( "testing" "github.com/gkampitakis/go-snaps" ) func TestExample(t *testing.T) { snaps.MatchSnapshot(t, "hello world") }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
gkampitakis-go-snaps — go get gkampitakis-go-snaps · libregistry