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

Function TestCommandBadDir

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

Source from the content-addressed store, hash-verified

48}
49
50func TestCommandBadDir(t *testing.T) {
51 ctx := log.Testing(t)
52 err := shell.Command("echo", "test").In("not#a#dir").Run(ctx)
53 assert.For(ctx, "err").ThatError(err).HasMessage(`Failed to start process
54 Cause: chdir not#a#dir: no such file or directory`)
55}
56
57func TestCommandCancel(t *testing.T) {
58 ctx := log.Testing(t)

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected