From 3da8a31c5bf8372c7c0b9c103985d1166bcd265d Mon Sep 17 00:00:00 2001 From: root Date: Sun, 8 Nov 2026 07:01:50 +0100 Subject: [PATCH] Fix test constructor calls broken by merging the polish lanes with the trailer-return fix Test-only; product code is unchanged. NavigationCutTest passes the new liveSession to MainContent and trailerReturn to the shell view model; TitleEntryBackTest passes the session to the Home view model; TitlePolishTest passes trailerReturn to the title view model. --- .../java/org/justinvisser/wolfskin/tv/NavigationCutTest.kt | 4 ++-- .../java/org/justinvisser/wolfskin/tv/TitleEntryBackTest.kt | 2 +- .../test/java/org/justinvisser/wolfskin/tv/TitlePolishTest.kt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/test/java/org/justinvisser/wolfskin/tv/NavigationCutTest.kt b/app/src/test/java/org/justinvisser/wolfskin/tv/NavigationCutTest.kt index a8885d7f..cf2e1df3 100644 --- a/app/src/test/java/org/justinvisser/wolfskin/tv/NavigationCutTest.kt +++ b/app/src/test/java/org/justinvisser/wolfskin/tv/NavigationCutTest.kt @@ -253,7 +253,7 @@ class NavigationCutTest { every { screensaver.state } returns kotlinx.coroutines.flow.MutableStateFlow(ScreensaverState(false, false, false, false)) rule.setContent { CompositionLocalProvider(LocalReducedMotion provides reduced) { androidx.tv.material3.MaterialTheme { com.github.damontecres.wholphin.MainContent(stack, NavigationManager(), UserPreferences(AppPreferences.getDefaultInstance(), null), - mockk(relaxed = true), screensaver, + mockk(relaxed = true), screensaver, kotlinx.coroutines.flow.MutableStateFlow(null), Modifier.requiredSize(WolfskinTokens.Shell.stageWidth, WolfskinTokens.Shell.stageHeight), setupInterceptor = { destination, modifier -> androidx.compose.foundation.layout.Box(modifier.then(Modifier.requiredSize(WolfskinTokens.Shell.stageWidth, WolfskinTokens.Shell.stageHeight)) @@ -356,7 +356,7 @@ internal class PolishAppHost(private val rule: AndroidComposeTestRule(relaxed = true), mockk(relaxed = true)) + mockk(relaxed = true), mockk(relaxed = true), trailerReturn = mockk(relaxed = true)) rule.setContent { CompositionLocalProvider(LocalReducedMotion provides reduced.value, LocalTitleBitmaps provides bitmaps) { WolfskinTheme { val route = titleRoute(id.toString()) ScreenEntry(shell, route, entryActive.value && navigation.backStack.lastOrNull() == Destination.Wolfskin(route)) {