fix: 3 issues found during real COBOL validation

This commit is contained in:
hangshuo652
2026-06-18 16:26:44 +08:00
parent de506d9c31
commit e2486db510
2 changed files with 454 additions and 0 deletions
+12
View File
@@ -96,7 +96,11 @@ def compute_confidence(
return {
"category": category,
"confidence": confidence,
"method": "keyword",
"source": "l1",
"features": [best[2]],
"required_tests": [],
"strategy_params": {"special_boundaries": [], "coverage_requirements": {"branch": 0.95, "paragraph": 1.0}},
"matches": matches,
}
@@ -107,7 +111,11 @@ def compute_confidence(
return {
"category": llm_category,
"confidence": llm_confidence,
"method": "hybrid",
"source": "llm",
"features": [],
"required_tests": [],
"strategy_params": {"special_boundaries": [], "coverage_requirements": {"branch": 0.95, "paragraph": 1.0}},
"matches": matches,
}
@@ -115,6 +123,10 @@ def compute_confidence(
return {
"category": "unknown",
"confidence": 0.0,
"method": "none",
"source": "unknown",
"features": [],
"required_tests": [],
"strategy_params": {"special_boundaries": [], "coverage_requirements": {"branch": 0.95, "paragraph": 1.0}},
"matches": [],
}