MCPcopy Create free account
hub / github.com/celer-pkg/celer / TestExecutor_ConfigureOutputs_NilOutput

Function TestExecutor_ConfigureOutputs_NilOutput

pkgs/cmd/exec_test.go:122–134  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

120}
121
122func TestExecutor_ConfigureOutputs_NilOutput(t *testing.T) {
123 executor := NewExecutor("test", "echo")
124 execCmd := exec.Command("echo")
125
126 executor.configureOutputs(execCmd, nil, nil)
127
128 if execCmd.Stdout == nil {
129 t.Error("stdout should not be nil")
130 }
131 if execCmd.Stderr == nil {
132 t.Error("stderr should not be nil")
133 }
134}
135
136func TestExecutor_ConfigureOutputs_WithOutput(t *testing.T) {
137 executor := NewExecutor("test", "echo")

Callers

nothing calls this directly

Calls 4

NewExecutorFunction · 0.85
configureOutputsMethod · 0.80
ErrorMethod · 0.80
CommandMethod · 0.65

Tested by

no test coverage detected