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

Function TestExecutor_ExecuteWithWorkDir

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

Source from the content-addressed store, hash-verified

26}
27
28func TestExecutor_ExecuteWithWorkDir(t *testing.T) {
29 executor := NewExecutor("ls test", "ls").SetWorkDir(os.TempDir())
30 if err := executor.Execute(); err != nil {
31 t.Fatalf("unexpected error: %v", err)
32 }
33}
34
35func TestExecutor_ExecuteInvalidWorkDir(t *testing.T) {
36 executor := NewExecutor("ls test", "ls").SetWorkDir("/nonexistent/directory/path")

Callers

nothing calls this directly

Calls 3

NewExecutorFunction · 0.85
SetWorkDirMethod · 0.80
ExecuteMethod · 0.80

Tested by

no test coverage detected