Commit e14f500
committed
test: add unit tests for P1-P5 paper integration modules
Add 134 unit tests covering the new modules introduced by the
LLM-paper integration tracks:
- agent_scaffold_tests.rs (17 tests): CallGraphBuilder, FunctionLookup,
call-graph path sampling for C and Python
- agent_flow_tests.rs (35 tests): TypeError Display, typecheck,
diagnoser, DSL harness construction, apply_rewrite
- context_pacvd_tests.rs (53 tests): AbstractionLevel, extract,
auto_level, 4-dimensional abstraction vectors
- rulesynth_validator_tests.rs (35 tests): validate, format_feedback,
load_corpus, emit_yaml, Pattern construction
Fix two production bugs discovered by the C tests: get_function_name
in both fn_lookup.rs and call_graph_paths.rs did not recognise
tree-sitter-c's function_declarator node kind, so C functions were
never indexed. Add 'function_declarator' to the matched child kinds.
CI gate: fmt OK, clippy clean, 2944 tests pass (+134).1 parent 96c8a7d commit e14f500
7 files changed
Lines changed: 2184 additions & 2 deletions
File tree
- src/agent_scaffold
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
281 | 284 | | |
282 | 285 | | |
283 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
233 | 236 | | |
234 | 237 | | |
235 | 238 | | |
| |||
0 commit comments