You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 210707f
Browse filesBrowse the repository at this point in the historyBrowse files
test(coverage): assert CE lookback window width + add --rec-lookback-period flag (refs #360)
Gap 1: extend mockCoverageCE to capture the last CE TimePeriod and add
TestGetRICoverageMap_LookbackWindowWidth, which parses Start/End YYYY-MM-DD
strings and asserts end-start == lookbackDays. Test fails if the window math
regresses to a hardcoded value.
Gap 2: replace the tautological "custom lookback stored in Config" subcase in
TestFetchExistingCoverage_LookbackDays (which asserted a struct field equals
what was just assigned) with a comment pointing to the new discriminating test.
Gap 3: implement the second flag from issue #360: --rec-lookback-period (7d/30d/60d,
default 7d) controls LookbackPeriodInDays in GetReservationPurchaseRecommendation.
Wired via Config.RecLookbackPeriod through fetchRecommendationsForRegion (CLI path)
and Client.SetRecLookbackPeriod (discovery/UI path). Validated in validateFlags.
TestSetRecLookbackPeriod_ReachesGetReservationPurchaseRecommendation asserts all
three enum values reach the actual CE input. TestValidateRecLookbackPeriod guards
the validation logic.
0 commit comments