(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func TestNewWriteTool(t *testing.T) { |
| 9 | tool, err := NewWriteTool(nil) |
| 10 | if err != nil { |
| 11 | t.Fatalf("Failed to create Write tool: %v", err) |
| 12 | } |
| 13 | |
| 14 | if tool.Name() != "Write" { |
| 15 | t.Errorf("Expected tool name 'Write', got '%s'", tool.Name()) |
| 16 | } |
| 17 | |
| 18 | if tool.Description() == "" { |
| 19 | t.Error("Tool description should not be empty") |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | func TestWriteTool_CreateNewFile(t *testing.T) { |
| 24 | tool, err := NewWriteTool(nil) |
nothing calls this directly
no test coverage detected