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

Function NewWithContext

pkg/util/test/test.go:109–117  ·  view source on GitHub ↗
(ctx context.Context, tb testing.TB)

Source from the content-addressed store, hash-verified

107)
108
109func NewWithContext(ctx context.Context, tb testing.TB) (*assertions.Assertion, context.Context) {
110 tb.Helper()
111 return assertions.New(tb), ContextWithTB(
112 log.NewContext(
113 ctx, GetLogger(tb),
114 ),
115 tb,
116 )
117}
118
119func New(tb testing.TB) (*assertions.Assertion, context.Context) {
120 tb.Helper()

Callers 3

TestPbaFunction · 0.92
NewFunction · 0.85
RunSubtestFromContextFunction · 0.85

Calls 4

NewContextFunction · 0.92
ContextWithTBFunction · 0.85
GetLoggerFunction · 0.85
NewMethod · 0.65

Tested by 1

TestPbaFunction · 0.74