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

Function TestRun

pkg/component/component_internal_test.go:32–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

30func (ts testSignal) Signal() {}
31
32func TestRun(t *testing.T) {
33 a := assertions.New(t)
34
35 c := MustNew(test.GetLogger(t), &Config{})
36 go func() {
37 c.terminationSignals <- testSignal{}
38 }()
39 err := c.Run()
40 a.So(err, should.BeNil)
41}

Callers

nothing calls this directly

Calls 4

GetLoggerFunction · 0.92
MustNewFunction · 0.85
NewMethod · 0.65
RunMethod · 0.65

Tested by

no test coverage detected