Registry / testing / rapid
library1.3.0gogounverified

Package rapid implements utilities for property-based testing in Go.

go get pgregory.net/rapid
INSTALL
IMPORT
SIG · RAPID
R
rapid
testinggov1.3.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.

rapid
pgregory.net/rapid

Property-based test using rapid

package main import ( "testing" "pgregory.net/rapid" ) func TestExample(t *testing.T) { rapid.Check(t, func(t *rapid.T) { s := rapid.String().Draw(t, "s") if len(s) < 0 { t.Fatal("impossible") } }) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
rapid — go get rapid · libregistry