mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-14 16:20:03 +00:00
0b5763764c
Six new branch-coverage tests taking twenty-one previously unreached functions from 0.0% to between 83.3% and 100.0%. internal/api: the approval and context-confidence converters including a round-trip inverse assertion, the handoff identity and safe-field merge, PBS and PMG user normalization, the auto-register missing-fields message, the magic link redactor, the metadata save message, shell quoting, the docker and podman command count, the hosted entitlement backoff with its cap boundary, the PVE backup and replication job filters, the ceph discovery target, the metric point sampler, the install job status derivation, the ledger status summary and validation error, the licensing bridge identity and retention normalizers, the mock fixture env gate, and the AI to unified finding and lifecycle converters. internal/ai: the run command approval target resolver and record builder, the provider catalog fallback merge with its case-insensitive dedup, the attention alert recency comparison, the patrol run fact counter, and the patrol resource metrics lookup. Three suspected source issues were surfaced by this work and are recorded but not fixed: metadataSaveErrorMessage and unifiedFindingFromAI both dereference their argument without a nil guard, and unifiedLifecycleFromAI copies the event metadata map by reference rather than cloning it. All six files are new; no source or existing test was touched.