MCPcopy
hub / github.com/urfave/cli / buildTestContext

Function buildTestContext

cli_test.go:24–29  ·  cli_test.go::buildTestContext
(t *testing.T)

Source from the content-addressed store, hash-verified

22}
23
24func buildTestContext(t *testing.T) context.Context {
25 ctx, cancel := context.WithTimeout(context.Background(), 100*time.Millisecond)
26 t.Cleanup(cancel)
27
28 return ctx
29}
30
31func TestTracing(t *testing.T) {
32 olderr := os.Stderr

Callers 15

TestArgsMaxNotSetFunction · 0.85
TestArgsMinGtMaxFunction · 0.85
TestArgsFloatTypesFunction · 0.85
TestArgsIntTypesFunction · 0.85
TestArgsFloatSliceTypesFunction · 0.85
TestArgsIntSliceTypesFunction · 0.85
TestArgsUintTypesFunction · 0.85
TestArgsUintSliceTypesFunction · 0.85
TestArgumentsRootCommandFunction · 0.85
TestArgumentsSubcommandFunction · 0.85
TestSingleOptionalArgFunction · 0.85
TestIntFlagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected