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

Function TestCommandOn

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

Source from the content-addressed store, hash-verified

116}
117
118func TestCommandOn(t *testing.T) {
119 ctx := log.Testing(t)
120 _, err := shell.Command("echo", "echo to stdout").On(errorTarget{}).Call(ctx)
121 assert.For(ctx, "err").ThatError(err).HasMessage(`Failed to start process
122 Cause: AlwaysFail`)
123}

Callers

nothing calls this directly

Calls 6

OnMethod · 0.80
HasMessageMethod · 0.80
ThatErrorMethod · 0.80
ForMethod · 0.80
CallMethod · 0.65
CommandMethod · 0.65

Tested by

no test coverage detected