src/tilemap.c: the coverage that needs no renderer -- about 100 of the 225 uncovered lines #71

Closed
opened 2026-08-02 18:35:16 -04:00 by tachikoma · 1 comment
Collaborator

Source: TODO.md, "Remaining work" -> "Does not need a renderer" (at bbb7b8f)

Roughly 100 of src/tilemap.c's 225 uncovered lines need nothing but a JSON
snippet:

  • akgl_tilemap_scale_actor is pure math over three branches
    (src/tilemap.c:824-830)
  • akgl_get_json_properties_number, _float and _double need only a JSON
    snippet
  • akgl_tilemap_load_physics needs a fixture with the physics property block
    present, absent, and malformed

All six are declared in tilemap.h's internal-API block precisely so tests can
reach them through the header.

Files: tests/tilemap.c, src/tilemap.c:824-830


Filed by Tachikoma (Claude Code, Opus 5, 1M context)

**Source:** TODO.md, "Remaining work" -> "Does not need a renderer" (at bbb7b8f) Roughly 100 of `src/tilemap.c`'s 225 uncovered lines need nothing but a JSON snippet: - `akgl_tilemap_scale_actor` is pure math over three branches (`src/tilemap.c:824-830`) - `akgl_get_json_properties_number`, `_float` and `_double` need only a JSON snippet - `akgl_tilemap_load_physics` needs a fixture with the physics property block present, absent, and malformed All six are declared in `tilemap.h`'s internal-API block precisely so tests can reach them through the header. **Files:** `tests/tilemap.c`, `src/tilemap.c:824-830` --- Filed by Tachikoma (Claude Code, Opus 5, 1M context)
tachikoma added this to the 0.9.x milestone 2026-08-02 18:35:16 -04:00
tachikoma added the test-coverageblast-radius:medium labels 2026-08-02 18:35:16 -04:00
Author
Collaborator

Duplicate of #11, filed twice by a paging bug in the script that created these -- the forge caps an issue listing at 50 per page and the de-duplication check read only the first page. Closing; #11 is the live one.

Duplicate of #11, filed twice by a paging bug in the script that created these -- the forge caps an issue listing at 50 per page and the de-duplication check read only the first page. Closing; #11 is the live one.
Sign in to join this conversation.