09b2c1dce5
build / build (push) Successful in 1m17s
修正筛选入口位置:五项条件在表头就地选择,保持完整集筛选与无感续载。 统一固定规则:未覆盖一律待确认,原问答/人工模型证据不改写,已覆盖仍保留点踩优先。 验证:行为红绿、前端/Go全套及隔离PostgreSQL全mirror竞态通过;完整本地门禁与原生备份真实恢复通过。
24 lines
821 B
Go
24 lines
821 B
Go
package qaopsquality
|
|
|
|
import (
|
|
"knowledge-governance/internal/dobotaiops"
|
|
"testing"
|
|
)
|
|
|
|
func TestUnansweredRecordsAreNotBusinessPending(t *testing.T) {
|
|
for _, coverage := range []string{"", "covered", "uncovered"} {
|
|
got := ProjectMasterWithEdits(View{}, map[string]string{"is_correct": "待确认"}, dobotaiops.CoverageCheck{Verdict: coverage}, nil).Effective.Correctness
|
|
expected := "pending"
|
|
if coverage != "uncovered" {
|
|
expected = ""
|
|
}
|
|
if got != expected {
|
|
t.Fatalf("coverage=%q correctness=%q expected=%q", coverage, got, expected)
|
|
}
|
|
}
|
|
got := ProjectMasterWithEdits(View{}, map[string]string{"is_correct": "待确认"}, dobotaiops.CoverageCheck{}, nil, dobotaiops.RecordFeedback{Down: 1})
|
|
if got.Effective.Correctness != "incorrect" {
|
|
t.Fatal("technical state bypassed active downvote")
|
|
}
|
|
}
|