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

Function NewTFromContext

pkg/util/test/test.go:139–146  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

137}
138
139func NewTFromContext(ctx context.Context) (*testing.T, *assertions.Assertion, bool) {
140 t, ok := TFromContext(ctx)
141 if !ok {
142 return nil, nil, false
143 }
144 t.Helper()
145 return t, assertions.New(t), true
146}
147
148func MustNewTFromContext(ctx context.Context) (*testing.T, *assertions.Assertion) {
149 t := MustTFromContext(ctx)

Callers

nothing calls this directly

Calls 2

TFromContextFunction · 0.85
NewMethod · 0.65

Tested by

no test coverage detected