(t *testing.T)
| 233 | } |
| 234 | |
| 235 | func TestClassifyIntent_NilInfoSafe(t *testing.T) { |
| 236 | // Should not panic with nil hubInfo |
| 237 | intent := classifyIntent("refactor everything", []string{"main.go"}, nil, config.ProjectConfig{}) |
| 238 | if intent.RiskLevel != "low" { |
| 239 | t.Errorf("expected low risk with nil info, got %q", intent.RiskLevel) |
| 240 | } |
| 241 | if intent.Category != "refactor" { |
| 242 | t.Errorf("expected refactor category, got %q", intent.Category) |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | func TestFormatImporterReason(t *testing.T) { |
| 247 | reason := formatImporterReason("scanner/types.go", 5) |
nothing calls this directly
no test coverage detected