(t *testing.T)
| 273 | } |
| 274 | |
| 275 | func TestGetReadDirToolDefinition(t *testing.T) { |
| 276 | toolDef := GetReadDirToolDefinition() |
| 277 | |
| 278 | if toolDef.Name != "read_dir" { |
| 279 | t.Errorf("Expected tool name 'read_dir', got %q", toolDef.Name) |
| 280 | } |
| 281 | |
| 282 | if toolDef.ToolLogName != "gen:readdir" { |
| 283 | t.Errorf("Expected tool log name 'gen:readdir', got %q", toolDef.ToolLogName) |
| 284 | } |
| 285 | |
| 286 | if toolDef.ToolAnyCallback == nil { |
| 287 | t.Error("ToolAnyCallback should not be nil") |
| 288 | } |
| 289 | |
| 290 | if toolDef.ToolApproval == nil { |
| 291 | t.Error("ToolApproval should not be nil") |
| 292 | } |
| 293 | |
| 294 | if toolDef.ToolCallDesc == nil { |
| 295 | t.Error("ToolCallDesc should not be nil") |
| 296 | } |
| 297 | } |
nothing calls this directly
no test coverage detected