(t *testing.T)
| 42 | } |
| 43 | |
| 44 | func TestClassifyIntent_Confidence(t *testing.T) { |
| 45 | // Pure refactor prompt should have high confidence |
| 46 | intent := classifyIntent("refactor the scanner to split it into modules", nil, nil, config.ProjectConfig{}) |
| 47 | if intent.Confidence < 0.5 { |
| 48 | t.Errorf("expected high confidence for pure refactor, got %f", intent.Confidence) |
| 49 | } |
| 50 | |
| 51 | // Mixed prompt should have lower confidence |
| 52 | mixed := classifyIntent("fix the bug and refactor the handler", nil, nil, config.ProjectConfig{}) |
| 53 | if mixed.Confidence >= 1.0 { |
| 54 | t.Errorf("expected lower confidence for mixed intent, got %f", mixed.Confidence) |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | func TestClassifyIntent_TieBreaking(t *testing.T) { |
| 59 | // "failing test" matches both bugfix ("failing") and test ("test") — |
nothing calls this directly
no test coverage detected