(t *testing.T)
| 49 | } |
| 50 | |
| 51 | func TestRunBuiltinTool_Guards(t *testing.T) { |
| 52 | c := &ChatCLI{} // no plugin manager |
| 53 | if _, err := c.RunBuiltinTool(context.Background(), "read", "x"); err == nil { |
| 54 | t.Error("expected error when plugins unavailable") |
| 55 | } |
| 56 | if tools := c.ListBuiltinTools(); tools != nil { |
| 57 | t.Errorf("expected nil tools without a plugin manager, got %v", tools) |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | func TestBuiltinTools_WithManager(t *testing.T) { |
| 62 | mgr, err := plugins.NewManager(zap.NewNop()) |
nothing calls this directly
no test coverage detected