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

Function TestNewTaskTool

pkg/tools/builtin/task_test.go:10–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestNewTaskTool(t *testing.T) {
11 tool, err := NewTaskTool(nil)
12 if err != nil {
13 t.Fatalf("Failed to create Task tool: %v", err)
14 }
15
16 if tool.Name() != "Task" {
17 t.Errorf("Expected tool name 'Task', got '%s'", tool.Name())
18 }
19
20 if tool.Description() == "" {
21 t.Error("Tool description should not be empty")
22 }
23}
24
25func TestTaskTool_InputSchema(t *testing.T) {
26 tool, err := NewTaskTool(nil)

Callers

nothing calls this directly

Calls 4

NameMethod · 0.95
DescriptionMethod · 0.95
NewTaskToolFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected