template-jj/cmd/planctl
sid e0db651781 test(planctl): parseLastUsage 10 MB buffer regression tests (pre-PR fix)
Pre-PR codex review flagged missing coverage for the 10 MB scanner buffer
called out in design §3.5. Adds:
- TestParseLastUsage_largeLine: 5 MB JSONL line with inert padding still
  extracts the usage object correctly (no silent truncation).
- TestParseLastUsage_oversizedLineErrors: 11 MB line surfaces a scanner
  error cleanly (no panic, nil usage).

Follow-up to parent 1.0, dev/plans/26174-planctl-context-tokens/tasks.md.
2026-04-23 18:59:52 -06:00
..
testdata feat(planctl): context-window token awareness — wiring (parent 2.0) 2026-04-23 18:36:35 -06:00
bench_test.go feat(planctl): CI workflow + perf benchmark 2026-04-21 20:14:06 -06:00
context.go feat(planctl): context-window token awareness — core (parent 1.0) 2026-04-23 17:38:37 -06:00
context_test.go test(planctl): parseLastUsage 10 MB buffer regression tests (pre-PR fix) 2026-04-23 18:59:52 -06:00
emit.go feat(planctl): context-window token awareness — wiring (parent 2.0) 2026-04-23 18:36:35 -06:00
emit_test.go feat(planctl): context-window token awareness — wiring (parent 2.0) 2026-04-23 18:36:35 -06:00
index.go fix(planctl): paren-aware tag extraction and splitting 2026-04-21 20:42:08 -06:00
index_test.go fix(planctl): paren-aware tag extraction and splitting 2026-04-21 20:42:08 -06:00
lint.go feat(planctl): lint rules — tag-syntax, cross-reference, file-presence, EARS 2026-04-21 19:11:29 -06:00
lint_test.go feat(planctl): lint rules — tag-syntax, cross-reference, file-presence, EARS 2026-04-21 19:11:29 -06:00
main.go feat(planctl): context-window token awareness — wiring (parent 2.0) 2026-04-23 18:36:35 -06:00
main_test.go feat(planctl): context-window token awareness — wiring (parent 2.0) 2026-04-23 18:36:35 -06:00
proc_darwin.go feat(planctl): context-window token awareness — core (parent 1.0) 2026-04-23 17:38:37 -06:00
proc_linux.go feat(planctl): context-window token awareness — core (parent 1.0) 2026-04-23 17:38:37 -06:00
proc_stat_parse.go feat(planctl): context-window token awareness — core (parent 1.0) 2026-04-23 17:38:37 -06:00
proc_stat_parse_test.go feat(planctl): context-window token awareness — core (parent 1.0) 2026-04-23 17:38:37 -06:00
proc_test.go feat(planctl): context-window token awareness — core (parent 1.0) 2026-04-23 17:38:37 -06:00
scan.go feat(planctl): scanner — goldmark-backed InCode + LineMask classification 2026-04-21 17:02:59 -06:00
scan_test.go feat(planctl): scanner — goldmark-backed InCode + LineMask classification 2026-04-21 17:02:59 -06:00