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

Function TestExecutor_Execute

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

Source from the content-addressed store, hash-verified

19}
20
21func TestExecutor_Execute(t *testing.T) {
22 executor := NewExecutor("echo test", "echo", "hello")
23 if err := executor.Execute(); err != nil {
24 t.Fatalf("unexpected error: %v", err)
25 }
26}
27
28func TestExecutor_ExecuteWithWorkDir(t *testing.T) {
29 executor := NewExecutor("ls test", "ls").SetWorkDir(os.TempDir())

Callers

nothing calls this directly

Calls 2

NewExecutorFunction · 0.85
ExecuteMethod · 0.80

Tested by

no test coverage detected