MCPcopy
hub / github.com/wavetermdev/waveterm / TestGetReadDirToolDefinition

Function TestGetReadDirToolDefinition

pkg/aiusechat/tools_readdir_test.go:275–297  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

273}
274
275func 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}

Callers

nothing calls this directly

Calls 2

GetReadDirToolDefinitionFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected