mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-08-24 08:23:31 +00:00
A third pass on partially covered functions, led by the alert evaluation predicates where a wrong arm means a missed or spurious alert. - internal/alerts/specs: matches 47.9 to 100, and all six matches helpers (severity threshold, change threshold, baseline anomaly, health assessment, posture threshold, and the severity latch) from 50 to 75 percent up to 100. Each threshold is pinned at, just below and just above, and the latch arm is exercised both latched and unlatched with concrete verdicts. - pkg/audit: exportCSV 76 to 88 with commas, quotes and newlines in the detail field asserted through a parsed round-trip; NewSigner error arms, both IsPersistent predicates and VerifySignature against a tampered payload and a wrong key. - internal/agentupdate: retryBackoffDelay, sleepWithContext, Snapshot and writeSelfTestTokenFile to 100, the token file exercised under t.TempDir including the unwritable-directory arm. - internal/notifications: writeMultipartBodyPart and alertNodeDisplay to 100, attachment handling to 69, all asserted on the produced MIME text. No test opens a network or SMTP connection. - internal/unifiedresources: the three pure action-dispatch helpers to 100. - internal/alerts/config: CanonicalResourceTypeKeys 34.3 to 78.4. Five targets deliberately did not move and are recorded rather than faked: the error arms of writeEmailThreadingHeaders, buildMultipartEmailMessage and copyWebhookConfig are unreachable because those functions write only into a local bytes.Buffer, which never errors; exportJSON's only gap is a json.MarshalIndent failure that its event struct cannot produce; and verifyBinaryMagic's remaining gap is a deferred close-error handler. No source file is modified. Adversarial review returned no rejects and flagged seven near-duplicate subtests; all were removed and every target function re-measured at an identical percentage. PULSE_ALLOW_CONTRACT_NEUTRAL_COMMIT=test-only branch coverage, no source or contract change |
||
|---|---|---|
| .. | ||
| agents | ||
| aicontracts | ||
| audit | ||
| auth | ||
| cloudauth | ||
| db | ||
| discovery | ||
| diskinventory | ||
| edition | ||
| extensions | ||
| fsfilters | ||
| licensing | ||
| metrics | ||
| pbs | ||
| pmg | ||
| proxmox | ||
| pulsecli | ||
| reporting | ||
| securityutil | ||
| server | ||
| tlsutil | ||