mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
fc6671b92e
Four new branch-coverage tests over internal/unifiedresources, taking the dispatch binding helpers and the in-memory store's action, loop report and change counting paths from zero to covered. No source or existing test touched. The dispatch binding is exercised through every validation failure arm with its concrete error, a successful bind asserted field by field, a re-bind over an already bound attempt, and blank identifiers, alongside the operation binding predicate and the empty policy posture summary proved to hand back independent pointers. The in-memory store paths are all write-then-read round trips rather than error checks: expiry, dispatch receipt lookup, dispatch completion, execution refusal and lifecycle event recording each assert the stored record afterwards, and the audit expiry is driven with nothing eligible, a mix of eligible and ineligible records proving the ineligible ones stay, and limits smaller than the eligible count. The loop report lookups pin the triple key exactly, with a window end differing by a single nanosecond proved not to match, and the user outcome update asserted through a subsequent read. The six change counters each cover an empty store, a different resource that must not be counted, the cutoff boundary on the real comparison, and for every filtered variant a filter that selects a strict subset so the filtered and unfiltered results are proved to differ. Contract-Neutral: test-only branch coverage, no contract surface touched