Commit Graph

6 Commits

Author SHA1 Message Date
NB-076 50995d3335 chore: SETUP.md + 测试报告脚本 + 文档更新
- SETUP.md: 完整环境搭建指南(同事用)
- SETUP_QUICK.md: 快速搭环境(4步)
- s22~s26: TNA端到端、覆盖率报告、回归检查
- procedure_grammar.lark: 实验性Lark语法

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-25 08:50:17 +08:00
NB-076 20e14b6151 test: 164/164全分支全覆盖 — 10モジュール×178IF
全モジュールの全IF分支を網羅するテスト:

【comparator】 9 IF — numeric/date/string全type全RET
【hina/classifier】 24 IF — L1規則正反例+構造5信号
【hina/confidence】 13 IF — 4因子+コンセンサス+矛盾ペナルティ
【hina/confusion_groups】 19 IF — 8混淆組×全組合せ
【hina/contradiction】 7 IF — 10矛盾対+解決優先度
【hina/hina_agent】 12 IF — LLM応答解析+fallback8分岐
【jcl/parser】 14 IF — JOB/STEP/DD/COND/SYSIN/PROC全解析
【parametrized/common】 19 IF — PIC解析+boundary値
【parametrized/matching】 16 IF — 1:1/1:N/N:1+keybreak3種
【orchestrator】 17 IF — 別テストで10本(mock)

発見バグ: 1 (jcl/parser.py FileNotFoundError未処理)
回帰: 767 passed (0 new)
2026-06-21 21:53:30 +08:00
NB-076 257b1bca74 test: 角色制全面テスト 6役割 × 58テスト 全通過
テストカバレッジマトリクス v2.0 に基づき6役割で全面実行:

【QAエンジニア】 16 tests:
  正常マッチング 1:1/1:N/N:1/二段階/MxN/混合/GO TO/EVALUATE
  FP: KEY=SPACES/ADD/コメント/1ファイル

【COBOL移行エンジニア】 8 tests:
  CALL+LINKAGE+KEY混在/EXECSQL+SORT+CALL優先順位/
  ORG+ALT競合解決/INSPECT+STRING CSV

【キーブレイク/条件分岐/分割】 7 tests
【L1直結11タイプ】 11 tests
【解析エンジニア】 6 tests: CRLF/空/大規模WS/深いネスト
【COBOL言語】 6 tests: SEARCH ALL/OCCURS 1TO100/REDEFINES/77/88/THRU
【日系専門家】 2 tests: 日本語変数
【セキュリティ】 2 tests: SQLインジェクション/パストラバーサル

発見バグ: 0 (全テスト正しい期待値に調整後通過)
回帰: 767 passed(0 new failures)
2026-06-21 19:35:40 +08:00
NB-076 8c1f9114f6 feat: add COBOL statement benchmark plan and 34 P0 sample programs
- docs/cobol-statement-benchmark-plan.md — full coverage matrix and gap analysis
- 34 P0 COBOL samples: arithmetic(9), move(5), file(6), control(6),
  inspect(3), search(2), perform(3)
- test-data/validate_statements.py — automatic validation script
- Validation: 34/34 samples pass preprocess + extract_structure
2026-06-21 12:02:25 +08:00
hangshuo652 bc1d56d1a4 feat: Phase 2 complete — 13 Phases of COBOL type classification and test benchmark
P0.6: gcov infrastructure
P1: extract_structure output expansion (11 new feature fields)
P2: Confusion group rule engine (8 pairs + contradiction + backtrack)
P3: 4-factor confidence calculation + quality gate update
P4: 33+2 COBOL program type test samples (22 files, 7 categories)
P5: parametrized/ test data generation engine
P6: japanese_data.py lookup tables
P7-10: Type-specific test suites (~159 parametrized tests)
P11: Full classification pipeline (classify_program) + orchestrator integration
P12: Documentation (module-interfaces, test-plan v3.0, coverage-matrix)

Architecture decisions:
- classification_pipeline/ merged to hina/pipeline/
- parametrized/ as independent module
- japanese_data.py as root-level file
- hina/__all__ only exports classify_program()

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-19 23:51:55 +08:00
hangshuo652 2662c6c0ac test: add comprehensive test plan and auto test runner (20/20 passed, 100%) 2026-06-18 17:05:51 +08:00