MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / TestPubSub

Function TestPubSub

pkg/events/basic/pubsub_test.go:37–47  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

35var timeout = (1 << 10) * test.Delay
36
37func TestPubSub(t *testing.T) { //nolint:paralleltest
38 events.IncludeCaller = true
39
40 test.RunTest(t, test.TestConfig{
41 Timeout: timeout,
42 Func: func(ctx context.Context, a *assertions.Assertion) {
43 pubsub := basic.NewPubSub()
44 eventstest.TestBackend(ctx, t, a, pubsub)
45 },
46 })
47}

Callers

nothing calls this directly

Calls 3

RunTestFunction · 0.92
NewPubSubFunction · 0.92
TestBackendFunction · 0.92

Tested by

no test coverage detected