Harden backup and restore operations

This commit is contained in:
Mikei386 committed 2026-07-13 19:47:43 +02:00
1 parent 6cbf170d65
commit bbf063c157
26 files changed
+914 -184

No files matched your search

+10
View File
@@ -43,3 +43,13 @@ func TestPreviousWithinCatchUpWindow(t *testing.T) {
t.Fatalf("unexpected catch-up match %v", got)
}
}
func TestCronUsesOrForRestrictedMonthDayAndWeekday(t *testing.T) {
expr, err := Parse("0 2 1 * 1")
if err != nil {
t.Fatal(err)
}
if !expr.Matches(time.Date(2026, 6, 8, 2, 0, 0, 0, time.UTC)) {
t.Fatal("restricted day-of-month and weekday were treated as AND")
}
}