MCPcopy Create free account
hub / github.com/astercloud/aster / TestNewQualityAnalyzer

Function TestNewQualityAnalyzer

pkg/memory/quality_analyzer_test.go:10–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func 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
24func TestDetectContradictions(t *testing.T) {
25 config := DefaultQualityMetricsConfig()

Callers

nothing calls this directly

Calls 4

NewQualityMetricsFunction · 0.85
NewQualityAnalyzerFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected