MCPcopy Create free account
hub / github.com/JordanCoin/codemap / TestClassifyIntent_NilInfoSafe

Function TestClassifyIntent_NilInfoSafe

cmd/intent_test.go:235–244  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

233}
234
235func 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
246func TestFormatImporterReason(t *testing.T) {
247 reason := formatImporterReason("scanner/types.go", 5)

Callers

nothing calls this directly

Calls 1

classifyIntentFunction · 0.85

Tested by

no test coverage detected