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

Function TestCommand

core/os/shell/command_test.go:30–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28)
29
30func TestCommand(t *testing.T) {
31 ctx := log.Testing(t)
32 err := shell.Command("echo", "test").Run(ctx)
33 assert.For(ctx, "err").ThatError(err).Succeeded()
34}
35
36func TestCommandFailed(t *testing.T) {
37 ctx := log.Testing(t)

Callers

nothing calls this directly

Calls 5

SucceededMethod · 0.80
ThatErrorMethod · 0.80
ForMethod · 0.80
RunMethod · 0.65
CommandMethod · 0.65

Tested by

no test coverage detected