Registry / testing / bflad-gopaniccheck

bflad-gopaniccheck

JSON →
library0.1.0gogounverified

A Go library for checking and handling panics in tests.

go get github.com/bflad/gopaniccheck
INSTALL
IMPORT
SIG · BFLAD-GOPANICCHECK
B
bflad-gopaniccheck
testinggov0.1.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.

gopaniccheck
github.com/bflad/gopaniccheck

Test that a function panics using gopaniccheck.

package main import ( "testing" "github.com/bflad/gopaniccheck" ) func TestPanic(t *testing.T) { gopaniccheck.Panic(t, func() { panic("test") }) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
bflad-gopaniccheck — go get bflad-gopaniccheck · libregistry