MCPcopy Create free account
hub / github.com/astercloud/aster / TestNewExecutor

Function TestNewExecutor

pkg/executionplan/executor_test.go:72–85  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

70}
71
72func TestNewExecutor(t *testing.T) {
73 toolMap := map[string]tools.Tool{
74 "tool1": newMockTool("tool1", "result1", nil),
75 }
76
77 executor := NewExecutor(toolMap)
78 if executor == nil {
79 t.Fatal("NewExecutor returned nil")
80 }
81
82 if len(executor.tools) != 1 {
83 t.Errorf("expected 1 tool, got %d", len(executor.tools))
84 }
85}
86
87func TestExecutorWithCallbacks(t *testing.T) {
88 toolMap := map[string]tools.Tool{

Callers

nothing calls this directly

Calls 2

newMockToolFunction · 0.85
NewExecutorFunction · 0.70

Tested by

no test coverage detected