Skip to content

test: fold cycle-named cache and streams tests; strengthen FlexInt fuzz#246

Open
cplieger wants to merge 3 commits into
mainfrom
test-audit
Open

test: fold cycle-named cache and streams tests; strengthen FlexInt fuzz#246
cplieger wants to merge 3 commits into
mainfrom
test-audit

Conversation

@cplieger

Copy link
Copy Markdown
Owner

Partial audit (internal/cache + internal/streams only; other packages are later batches). Fold gremlins_kill/mutants into source-named cache test files (profile, processed, scheduler, tokens), clean up the streams tests (match/score/select), and strengthen the FlexInt fuzz invariant. No production change; build/test/lint green.

cplieger added 3 commits June 26, 2026 18:11
Partial audit (internal/cache + internal/streams only; other packages are later batches). Fold gremlins_kill/mutants into source-named cache test files (profile, processed, scheduler, tokens), clean up the streams tests (match/score/select), and strengthen the FlexInt fuzz invariant. No production change; build/test/lint green.
Partial completion (internal/plex + internal/notify + internal/sync + internal/users; streams+cache were the prior commit; scheduler/timeutil/ignore/testsupport/root remain). Fold the fuzz/mutants files into source-named tests (client_test, the renamed plex_fuzz_test and listener_fuzz_test), collapse assertion-free client smoke tests into log-asserting tables, and add a ChangeTracksForEpisode test for the previously-uncovered orchestration path. Prod (behavior-preserving): extract logDisconnect from Listener.Listen (cognit 18->14). Build/test/lint green.
…loops

Completes the plex-language-sync audit (root + internal/scheduler + internal/ignore + internal/timeutil + internal/testsupport; the other packages were prior commits). Rename the timeutil fuzz file to hhmm_fuzz_test and strengthen it from bounds-only to a canonical round-trip invariant, rewrite the assertion-free TestLogConfig to pin the token-masking security contract, drop a hand-rolled itoa helper, and add an ignore nil-reader guard case. Prod (behavior-preserving): extract historyWorker/feedHistory from processRecentHistory (cognit 25->2) and recentlyAddedWorker/feedRecentlyAdded from processRecentlyAdded (cognit 22->2); worker-pool fan-out, circuit-breaker, dedup, ignore checks, and call order all preserved. Build/test/lint green; repo now has zero complexity offenders.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant