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

Function TestExecutor_ConfigureOutputs_WithOutput

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

Source from the content-addressed store, hash-verified

134}
135
136func TestExecutor_ConfigureOutputs_WithOutput(t *testing.T) {
137 executor := NewExecutor("test", "echo")
138 execCmd := exec.Command("echo")
139 var buf fileio.LockedBuffer
140
141 executor.configureOutputs(execCmd, nil, &buf)
142
143 if execCmd.Stdout == nil {
144 t.Error("stdout should not be nil")
145 }
146 if execCmd.Stderr == nil {
147 t.Error("stderr should not be nil")
148 }
149}
150
151func TestExecutor_ConfigureOutputs_WithLogFile(t *testing.T) {
152 tmpDir := t.TempDir()

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