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

Function TestCommandBadProgram

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

Source from the content-addressed store, hash-verified

41}
42
43func TestCommandBadProgram(t *testing.T) {
44 ctx := log.Testing(t)
45 err := shell.Command("not#a#program", "test").Run(ctx)
46 assert.For(ctx, "err").ThatError(err).HasMessage(`Failed to start process
47 Cause: exec: "not#a#program": executable file not found in $PATH`)
48}
49
50func TestCommandBadDir(t *testing.T) {
51 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