MCPcopy Create free account
hub / github.com/google/gapid / newCtx

Function newCtx

core/os/shell/command_example_test.go:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25)
26
27func newCtx() context.Context {
28 ctx := context.Background()
29 ctx = log.PutClock(ctx, log.NoClock)
30 ctx = log.PutHandler(ctx, log.Normal.Handler(log.Stdout()))
31 ctx = log.Enter(ctx, "Example")
32 return ctx
33}
34
35// This example shows how to run a command, wait for it to complete and check if it succeeded.
36func ExampleSilent() {

Callers 3

ExampleSilentFunction · 0.70
ExampleVerboseFunction · 0.70
ExampleCaptureFunction · 0.70

Calls 2

BackgroundMethod · 0.80
HandlerMethod · 0.80

Tested by

no test coverage detected