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

Function TestCommandFailed

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

Source from the content-addressed store, hash-verified

34}
35
36func TestCommandFailed(t *testing.T) {
37 ctx := log.Testing(t)
38 err := shell.Command("false").Run(ctx)
39 assert.For(ctx, "err").ThatError(err).HasMessage(`Process returned error
40 Cause: exit status 1`)
41}
42
43func TestCommandBadProgram(t *testing.T) {
44 ctx := log.Testing(t)

Callers

nothing calls this directly

Calls 5

HasMessageMethod · 0.80
ThatErrorMethod · 0.80
ForMethod · 0.80
RunMethod · 0.65
CommandMethod · 0.65

Tested by

no test coverage detected