(t *testing.T)
| 3 | import "testing" |
| 4 | |
| 5 | func TestGetToolIcon(t *testing.T) { |
| 6 | tests := []struct { |
| 7 | toolName string |
| 8 | expected string |
| 9 | }{ |
| 10 | {"Read", "📖"}, |
| 11 | {"Edit", "✏️"}, |
| 12 | {"Write", "📝"}, |
| 13 | {"Bash", "🔨"}, |
| 14 | {"Glob", "🔍"}, |
| 15 | {"Grep", "🔎"}, |
| 16 | {"Task", "🤖"}, |
| 17 | {"WebFetch", "🌐"}, |
| 18 | {"WebSearch", "🌐"}, |
| 19 | {"Unknown", "⚙️"}, |
| 20 | {"", "⚙️"}, |
| 21 | } |
| 22 | |
| 23 | for _, tt := range tests { |
| 24 | t.Run(tt.toolName, func(t *testing.T) { |
| 25 | result := getToolIcon(tt.toolName) |
| 26 | if result != tt.expected { |
| 27 | t.Errorf("getToolIcon(%q) = %q, want %q", tt.toolName, result, tt.expected) |
| 28 | } |
| 29 | }) |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | func TestGetToolArgument(t *testing.T) { |
| 34 | tests := []struct { |
nothing calls this directly
no test coverage detected