MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestGetToolIcon

Function TestGetToolIcon

internal/tui/log_test.go:5–31  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3import "testing"
4
5func 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
33func TestGetToolArgument(t *testing.T) {
34 tests := []struct {

Callers

nothing calls this directly

Calls 2

getToolIconFunction · 0.85
RunMethod · 0.80

Tested by

no test coverage detected