(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestNewQualityAnalyzer(t *testing.T) { |
| 11 | config := DefaultQualityMetricsConfig() |
| 12 | qm := NewQualityMetrics(config) |
| 13 | qa := NewQualityAnalyzer(qm, nil) |
| 14 | |
| 15 | if qa == nil { |
| 16 | t.Fatal("NewQualityAnalyzer returned nil") |
| 17 | } |
| 18 | |
| 19 | if qa.metrics != qm { |
| 20 | t.Error("analyzer should reference the provided metrics") |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | func TestDetectContradictions(t *testing.T) { |
| 25 | config := DefaultQualityMetricsConfig() |
nothing calls this directly
no test coverage detected