MCPcopy Index your code
hub / github.com/smallstep/cli / TestCLIContextFromContext

Function TestCLIContextFromContext

internal/command/inject_test.go:12–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestCLIContextFromContext(t *testing.T) {
13 t.Parallel()
14
15 exp := new(cli.Context)
16
17 got := CLIContextFromContext(withCLIContext(context.Background(), exp))
18 assert.Same(t, exp, got)
19}
20
21func TestCLIContextFromContextPanics(t *testing.T) {
22 t.Parallel()

Callers

nothing calls this directly

Calls 2

CLIContextFromContextFunction · 0.85
withCLIContextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…