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

Function TestExecutor_ExecuteInvalidWorkDir

pkgs/cmd/exec_linux_test.go:35–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func TestExecutor_ExecuteInvalidWorkDir(t *testing.T) {
36 executor := NewExecutor("ls test", "ls").SetWorkDir("/nonexistent/directory/path")
37 err := executor.Execute()
38 if err == nil {
39 t.Fatal("expected error for nonexistent work dir")
40 }
41}
42
43func TestExecutor_ExecuteNoArgs(t *testing.T) {
44 executor := NewExecutor("echo test", "echo hello")

Callers

nothing calls this directly

Calls 3

NewExecutorFunction · 0.85
SetWorkDirMethod · 0.80
ExecuteMethod · 0.80

Tested by

no test coverage detected