MCPcopy Index your code
hub / github.com/riverqueue/river / newTestService

Function newTestService

internal/maintenance/queue_maintainer_test.go:31–38  ·  view source on GitHub ↗
(tb testing.TB)

Source from the content-addressed store, hash-verified

29}
30
31func newTestService(tb testing.TB) *testService {
32 tb.Helper()
33
34 testSvc := baseservice.Init(riversharedtest.BaseServiceArchetype(tb), &testService{})
35 testSvc.testSignals.Init(tb)
36
37 return testSvc
38}
39
40func (s *testService) Start(ctx context.Context) error {
41 ctx, shouldStart, started, stopped := s.StartInit(ctx)

Callers 2

TestQueueMaintainerFunction · 0.85

Calls 4

InitFunction · 0.92
BaseServiceArchetypeFunction · 0.92
HelperMethod · 0.65
InitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…