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

Function TestExecutor_ExecuteOutput

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

Source from the content-addressed store, hash-verified

8)
9
10func TestExecutor_ExecuteOutput(t *testing.T) {
11 executor := NewExecutor("echo test", "echo", "hello world")
12 output, err := executor.ExecuteOutput()
13 if err != nil {
14 t.Fatalf("unexpected error: %v", err)
15 }
16 if output != "hello world\n" {
17 t.Errorf("output = %q, want %q", output, "hello world\n")
18 }
19}
20
21func TestExecutor_Execute(t *testing.T) {
22 executor := NewExecutor("echo test", "echo", "hello")

Callers

nothing calls this directly

Calls 2

NewExecutorFunction · 0.85
ExecuteOutputMethod · 0.80

Tested by

no test coverage detected