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

Function StartComponent

pkg/component/test/component.go:34–38  ·  view source on GitHub ↗

StartComponent starts the component for testing.

(tb testing.TB, c *component.Component)

Source from the content-addressed store, hash-verified

32
33// StartComponent starts the component for testing.
34func StartComponent(tb testing.TB, c *component.Component) {
35 if err := c.Start(); err != nil {
36 tb.Fatalf("Failed to start component: %v", err)
37 }
38}

Callers

nothing calls this directly

Calls 2

FatalfMethod · 0.65
StartMethod · 0.45

Tested by

no test coverage detected