MCPcopy
hub / github.com/kopia/kopia / Context

Function Context

internal/testlogging/ctx.go:40–42  ·  view source on GitHub ↗

Context returns a context with attached logger that emits all log entries to go testing.T log output.

(t testingT)

Source from the content-addressed store, hash-verified

38
39// Context returns a context with attached logger that emits all log entries to go testing.T log output.
40func Context(t testingT) context.Context {
41 return ContextWithLevel(t, LevelDebug)
42}
43
44// ContextForCleanup returns a context with attached logger that emits all log entries to go testing.T log output.
45// This context is not canceled when the test finishes, so it is suitable to be used in cleanup functions.

Callers 15

TestParseMessageFunction · 0.92
TestParseMessageNoBodyFunction · 0.92
TestEmailProviderFunction · 0.92
TestEmailProvider_TextFunction · 0.92
TestEmailProvider_AUTHFunction · 0.92
TestPushoverFunction · 0.92
TestPushover_InvalidFunction · 0.92
TestJSONSenderFunction · 0.92
TestProviderFunction · 0.92
TestWebhookFunction · 0.92

Calls 1

ContextWithLevelFunction · 0.85

Tested by 15

TestParseMessageFunction · 0.74
TestParseMessageNoBodyFunction · 0.74
TestEmailProviderFunction · 0.74
TestEmailProvider_TextFunction · 0.74
TestEmailProvider_AUTHFunction · 0.74
TestPushoverFunction · 0.74
TestPushover_InvalidFunction · 0.74
TestJSONSenderFunction · 0.74
TestProviderFunction · 0.74
TestWebhookFunction · 0.74