0.95.1: when a programme's file ends before its slot, play and hold the channel ident (NEXT AT …) instead of a black screen
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 1m58s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m28s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-03 19:41:43 +00:00
co-authored by Claude Opus 5.5
parent c7bd97d6bc
commit 86e90efc02
8 changed files with 57 additions and 11 deletions
@@ -26,6 +26,15 @@ class IdentTest {
assertEquals(IDENT_STING_MS, identLength(999))
}
@Test fun aFileStoppingWellBeforeItsSlotEndsCountsAsEndingEarly() {
// The 3 November Night Garden: booked to 19:28:06, its file stopped at 19:24:54.
val slotEnd = 26 * minute
assertTrue(finishedEarly(slotEnd - 192_000, slotEnd))
// Running out in the last moments is just the credits, which the ident covers anyway.
assertFalse(finishedEarly(slotEnd - EARLY_END_GRACE_MS, slotEnd))
assertFalse(finishedEarly(slotEnd + 1_000, slotEnd))
}
@Test fun everyChannelHasItsOwnIdent() {
SmartChannels.map { it.number }.filter { identVideo(it) == null }.let { assertEquals(emptyList<Int>(), it) }
}