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

Function TestNew

pkg/component/component_test.go:39–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

37)
38
39func TestNew(t *testing.T) {
40 a := assertions.New(t)
41
42 logger := test.GetLogger(t)
43
44 _, err := component.New(logger, &component.Config{})
45 a.So(err, should.BeNil)
46
47 mustNew := func() { component.MustNew(logger, &component.Config{}) }
48 a.So(mustNew, should.NotPanic)
49}
50
51func TestLogger(t *testing.T) {
52 a := assertions.New(t)

Callers

nothing calls this directly

Calls 4

GetLoggerFunction · 0.92
NewFunction · 0.92
MustNewFunction · 0.92
NewMethod · 0.65

Tested by

no test coverage detected