Commit Graph

12 Commits

Author SHA1 Message Date
Axel Meyer
3cd1a0aee9 test(api-discovery-test): add 4 assertions for tier=module
Coverage: TOTAL 55 -> 59. New cases verify complete module README
passes (no missing + order ok), missing-Controls is reported, and
absence of API section is accepted by the module tier.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 01:29:06 +02:00
Axel Meyer
8131f42ba0 test(api-discovery-test): add 3 assertions for tier=engine
Covers the new engine-tier validate_readme_structure behavior:
complete engine README, missing-API detection, and the relaxed Badges
pattern that accepts arbitrary bold key:value lines (engine has no
Lib-ID prefix).

Total assertion-count grows from 52 to 55. Coverage table updated.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 18:45:07 +02:00
Axel Meyer
338fd050de test(api-discovery): add comment-strip and namespace-less assertions
Adds 9 new assertions covering the two recent api-discovery fixes:

parse_lua_surface (4 new):
- commented-out function-declarations are stripped (function-form and
  assignment-form)
- inline-comment after a real declaration does not break the match

parse_readme_api (5 new):
- namespace-less H3 headers (e.g. \`run_tests(ctx)\`) are captured
- mixed namespaced + namespace-less in the same section captures both
  without duplicates

Coverage Statement updated: 43 -> 52 total assertions.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 17:51:40 +02:00
Axel Meyer
efa1a5ebcc 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>
2026-05-16 16:07:15 +02:00
Axel Meyer
44314774ee test: cover new Badges/Topology MUST-Sections (S2 iter)
User-feedback iteration on S2 PoC template:
- Update validate_readme_structure test-data ('complete' + 'missing_api')
  to use new bold-list Badges + ## Topology H2 heading.
- Add 'missing_topology' case: README without ## Topology heading must
  report Topology as missing MUST-Section.
- Add 'missing_badges' case: README without **Lib-ID:** bold-line must
  report Badges as missing MUST-Section.

Assertion-count: 32 -> 35 (+3 new). README Coverage-Statement updated.
2026-05-16 15:26:36 +02:00
Axel Meyer
897468132e test: assertions for validate_readme_structure (S2 Phase 1)
5 assertions: complete-README clean, missing-API detected, missing-list
contains 'API', community-tier skips enforcement.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 13:37:39 +02:00
Axel Meyer
d4af05b879 test: assertions for generate_topology_block (S2 Phase 1)
6 assertions: standard lib (self + dep + engine nodes), asset-lib
(self only, no engine).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 13:33:37 +02:00
Axel Meyer
539d96d098 test: assertions for grep_engine_calls (S2 Phase 1)
5 assertions: 3 unique calls detected, count matches, no-engine-calls
edge returns empty.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 13:27:59 +02:00
Axel Meyer
734271c95f test: assertions for diff_surface (S2 Phase 1)
5 assertions: equal-set (no diff), surface-superset (missing), doc-
superset (stale). Sort-stable order verified.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 13:23:01 +02:00
Axel Meyer
e69bcc4344 test: assertions for parse_readme_api (S2 Phase 1)
4 assertions: standard H3-pattern + no-API-section edge.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 13:18:23 +02:00
Axel Meyer
162d99deeb test: assertions for parse_lua_surface (S2 Phase 1)
7 assertions: standard-pattern (2 public + 1 private) + empty-source
edge-case. Mutation-resistant: name + count both verified.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 12:55:29 +02:00
Axel Meyer
ba22f77e5d init: lib-core.api-discovery-test v0.1.0 skeleton
Empty run_tests body. Assertions added incrementally via TDD in
subsequent S2-plan tasks.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 12:41:59 +02:00