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

Function TestExecutor_ExecuteNoArgs

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

Source from the content-addressed store, hash-verified

41}
42
43func TestExecutor_ExecuteNoArgs(t *testing.T) {
44 executor := NewExecutor("echo test", "echo hello")
45 output, err := executor.ExecuteOutput()
46 if err != nil {
47 t.Fatalf("unexpected error: %v", err)
48 }
49 if output != "hello\n" {
50 t.Errorf("output = %q, want %q", output, "hello\n")
51 }
52}
53
54func TestExecutor_ExecuteFailingCommand(t *testing.T) {
55 executor := NewExecutor("false test", "false")

Callers

nothing calls this directly

Calls 2

NewExecutorFunction · 0.85
ExecuteOutputMethod · 0.80

Tested by

no test coverage detected