Versions in this module Expand all Collapse all v1 v1.3.0 Nov 19, 2026 Changes in this version + var ErrInjected = errors.New("injected transport failure") + func ExploreParallel[S any](t *testing.T, contract Contract[S], factory func(*rapid.T) Campaign[S]) + func Explore[S any](t *testing.T, contract Contract[S], factory func(*rapid.T) Campaign[S]) + type Campaign struct + Actions map[string]func(*rapid.T) error + ObserveEffects func(func()) + Progress func(context.Context) error + Recover func(context.Context) error + RecoverySteps int + Restart func(context.Context) error + Retryable func(error) bool + Snapshot func(context.Context) (S, error) + Trace *Trace + type Contract struct + Always []Rule[S] + Eventually []Rule[S] + type FailureMode string + const AfterCommit + const BeforeCommit + type Faults struct + Trace *Trace + func (f *Faults) Arm(operation string, mode FailureMode) + func (f *Faults) Call(operation string, commit func() error) error + func (f *Faults) Heal() + type Queue struct + Now time.Duration + func NewQueue[K comparable](compare func(K, K) int) *Queue[K] + func (q *Queue[K]) Add(r K) + func (q *Queue[K]) AddAfter(r K, delay time.Duration) + func (q *Queue[K]) AddRateLimited(r K) + func (q *Queue[K]) Done(K) + func (q *Queue[K]) Forget(r K) + func (q *Queue[K]) Get() (K, bool) + func (q *Queue[K]) Len() int + func (q *Queue[K]) NumRequeues(r K) int + func (q *Queue[K]) Ready() []K + func (q *Queue[K]) ShutDown() + func (q *Queue[K]) ShutDownWithDrain() + func (q *Queue[K]) ShuttingDown() bool + func (q *Queue[K]) Take(r K) + type Rule struct + Check func(S) error + Name string + Statement string + type Trace struct + func (t *Trace) Logf(format string, args ...any) + func (t *Trace) String() string v1.3.0-rc1 Oct 29, 2026