MCPcopy
hub / github.com/riverqueue/river / Stress

Function Stress

rivershared/startstoptest/startstoptest.go:18–20  ·  view source on GitHub ↗

Stress is a test helper that puts stress on a service's start and stop functions so that we can detect any data races that it might have due to improper use of BaseStopStart.

(ctx context.Context, tb testingT, svc startstop.Service)

Source from the content-addressed store, hash-verified

16// functions so that we can detect any data races that it might have due to
17// improper use of BaseStopStart.
18func Stress(ctx context.Context, tb testingT, svc startstop.Service) {
19 StressErr(ctx, tb, svc, nil)
20}
21
22// StressErr is the same as Stress except that the given allowedStartErr is
23// tolerated on start (either no error or an error that is allowedStartErr is

Callers 14

Test_SubscriptionManagerFunction · 0.92
Test_Client_CommonFunction · 0.92
testProducerFunction · 0.92
TestReindexerFunction · 0.92
TestQueueMaintainerFunction · 0.92
TestJobSchedulerFunction · 0.92
TestPeriodicJobEnqueuerFunction · 0.92
TestJobRescuerFunction · 0.92
TestJobCleanerFunction · 0.92
TestQueueCleanerFunction · 0.92
testElectorFunction · 0.92

Calls 1

StressErrFunction · 0.85

Tested by 14

Test_SubscriptionManagerFunction · 0.74
Test_Client_CommonFunction · 0.74
testProducerFunction · 0.74
TestReindexerFunction · 0.74
TestQueueMaintainerFunction · 0.74
TestJobSchedulerFunction · 0.74
TestPeriodicJobEnqueuerFunction · 0.74
TestJobRescuerFunction · 0.74
TestJobCleanerFunction · 0.74
TestQueueCleanerFunction · 0.74
testElectorFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…