MCPcopy Index your code
hub / github.com/celer-pkg/celer / TestExecutor_CreateLogFileNoPath

Function TestExecutor_CreateLogFileNoPath

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

Source from the content-addressed store, hash-verified

79}
80
81func TestExecutor_CreateLogFileNoPath(t *testing.T) {
82 executor := NewExecutor("test", "echo")
83 execCmd := exec.Command("echo")
84 execCmd.Env = os.Environ()
85
86 logFile, err := executor.createLogFile(execCmd)
87 if err != nil {
88 t.Fatalf("unexpected error: %v", err)
89 }
90 if logFile != nil {
91 t.Fatal("expected nil log file when logPath is empty")
92 }
93}
94
95func TestExecutor_CreateLogFileWithEnv(t *testing.T) {
96 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 3

NewExecutorFunction · 0.85
createLogFileMethod · 0.80
CommandMethod · 0.65

Tested by

no test coverage detected