Files
pulse/pkg
rcourtman ef6adfc121 test: add comprehensive regression tests for memory cache-aware calculation (#435)
Adds TestMemoryStatusEffectiveAvailable_RegressionIssue435 with 5 test scenarios
covering all memory calculation edge cases reported in GitHub issue #435:

1. Proxmox 8.x with 'available' field (most common)
2. Older Proxmox with 'avail' field
3. Derived calculation from free+buffers+cached
4. Real user case: 86% displayed when actual usage was 42%
5. Missing all cache fields (fallback behavior)

Tests verify EffectiveAvailable() correctly returns cache-aware memory values
and calculates realistic usage percentages that exclude reclaimable cache.

These tests ensure future changes don't regress the cache-aware behavior
that was fixed in v4.15.0-rc.3.
2025-10-10 18:35:16 +00:00
..