test: sugar-form + mixed-form assertions for parse_lua_surface (S2 follow-up)

8 new assertions (sugar-form: 5, mixed-form: 3). Total 35 -> 43.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Axel Meyer
2026-05-16 16:07:15 +02:00
parent 44314774ee
commit efa1a5ebcc
2 changed files with 33 additions and 2 deletions

View File

@@ -8,13 +8,13 @@ Per Fault-Injection-Audit-Convention (2026-05-16):
| Function | Assertion-Count | Coverage |
|---|---|---|
| `parse_lua_surface` | 7 | Happy-path (2 public + 1 private), empty-source edge |
| `parse_lua_surface` | 15 | Happy-path (2 public + 1 private), empty-source edge, sugar-form (`function M.foo`), mixed-form (sugar + explicit) |
| `parse_readme_api` | 4 | Standard H3-pattern, no-API-section edge |
| `diff_surface` | 5 | Equal (no diff), surface-superset (missing), doc-superset (stale) |
| `grep_engine_calls` | 5 | 3 unique calls, no-calls edge |
| `generate_topology_block` | 6 | Lib-with-deps+engine, asset-lib (no deps, no engine) |
| `validate_readme_structure` | 8 | Complete core, missing-API core, missing-Topology, missing-Badges, community-tier-no-enforcement |
| **TOTAL** | **35** | |
| **TOTAL** | **43** | |
### Tested-Surface
- All 6 public functions of `lib-core.api-discovery` v0.1.0.