MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestNewTimeoutCmd_Echo2

Function TestNewTimeoutCmd_Echo2

internal/utils/exec/cmd_test.go:31–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

29}
30
31func TestNewTimeoutCmd_Echo2(t *testing.T) {
32 var cmd = executils.NewCmd("echo", "hello")
33 cmd.WithStdout()
34 cmd.WithStderr()
35 err := cmd.Run()
36 t.Log("error:", err)
37 t.Log("stdout:", cmd.Stdout())
38 t.Log("raw stdout:", cmd.RawStdout())
39 t.Log("stderr:", cmd.Stderr())
40 t.Log("raw stderr:", cmd.RawStderr())
41}
42
43func TestNewTimeoutCmd_Echo3(t *testing.T) {
44 var cmd = executils.NewCmd("echo", "-n", "hello")

Callers

nothing calls this directly

Calls 8

WithStdoutMethod · 0.80
WithStderrMethod · 0.80
LogMethod · 0.80
StdoutMethod · 0.80
RawStdoutMethod · 0.80
StderrMethod · 0.80
RawStderrMethod · 0.80
RunMethod · 0.45

Tested by

no test coverage detected