MCPcopy Index your code
hub / github.com/bitfield/script / TestExecErrorsWhenTheSpecifiedCommandDoesNotExist

Function TestExecErrorsWhenTheSpecifiedCommandDoesNotExist

script_test.go:1224–1231  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1222}
1223
1224func TestExecErrorsWhenTheSpecifiedCommandDoesNotExist(t *testing.T) {
1225 t.Parallel()
1226 p := script.Exec("doesntexist")
1227 p.Wait()
1228 if p.Error() == nil {
1229 t.Error("want error running non-existent command")
1230 }
1231}
1232
1233func TestExecRunsGoWithNoArgsAndGetsUsageMessagePlusErrorExitStatus2(t *testing.T) {
1234 t.Parallel()

Callers

nothing calls this directly

Calls 3

ExecFunction · 0.92
WaitMethod · 0.80
ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…