MCPcopy Create free account
hub / github.com/belak/gitdir / TestCtxExtract

Function TestCtxExtract

context_test.go:64–75  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

62}
63
64func TestCtxExtract(t *testing.T) {
65 t.Parallel()
66
67 ctx := context.Background()
68
69 logger, config, user := CtxExtract(ctx)
70 config.fs = nil
71
72 assert.Equal(t, &log.Logger, logger)
73 assert.Equal(t, NewConfig(nil), config)
74 assert.Equal(t, AnonymousUser, user)
75}
76
77func TestCtxSetConfig(t *testing.T) {
78 t.Skip("not implemented")

Callers

nothing calls this directly

Calls 2

CtxExtractFunction · 0.85
NewConfigFunction · 0.85

Tested by

no test coverage detected