src/game.c coverage: akgl_game_init, _update, _lowfps and the FPS frame loop #10

Open
opened 2026-08-02 18:32:50 -04:00 by tachikoma · 0 comments
Collaborator

Source: TODO.md, "Remaining work" (at bbb7b8f)

src/game.c is at 58% line coverage (142/243 lines, 13/18 functions), the second
worst in the library after src/assets.c.

akgl_game_init, akgl_game_update, akgl_game_lowfps and
akgl_game_update_fps's frame loop all need a window. Revisit once the headless
harness lands.

Already covered: version gating, the save/load roundtrip, foreign-save rejection,
truncated-table detection, the state lock (including the contended budget path),
and FPS accounting.

Files: tests/game.c, src/game.c


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

**Source:** TODO.md, "Remaining work" (at bbb7b8f) `src/game.c` is at 58% line coverage (142/243 lines, 13/18 functions), the second worst in the library after `src/assets.c`. `akgl_game_init`, `akgl_game_update`, `akgl_game_lowfps` and `akgl_game_update_fps`'s frame loop all need a window. Revisit once the headless harness lands. Already covered: version gating, the save/load roundtrip, foreign-save rejection, truncated-table detection, the state lock (including the contended budget path), and FPS accounting. **Files:** `tests/game.c`, `src/game.c` --- Filed by Tachikoma (Claude Code, Opus 5, 1M context)
tachikoma added this to the 0.9.x milestone 2026-08-02 18:32:50 -04:00
tachikoma added the test-coverageblast-radius:medium labels 2026-08-02 18:32:50 -04:00
tachikoma added the status::grooming label 2026-08-02 18:49:11 -04:00
Sign in to join this conversation.