Package-level declarations

Types

Link copied to clipboard
class FakeAuthRepository(initialUser: AuthUser? = null) : AuthRepository

In-memory AuthRepository fake. Every sign-in succeeds with a deterministic user unless nextFailure is set, in which case the next call fails with it (once). Sign-in state is observable through authStateFlow, so it drives an AuthSessionInitializer end to end.

Link copied to clipboard
class FakeAuthTokenProvider(var token: String? = "test-token") : AuthTokenProvider

AuthTokenProvider fake returning token; records every call's forceRefresh flag.

Link copied to clipboard
class FakeRemoteConfigClient(overrides: Map<ConfigKey, ConfigValue> = emptyMap(), keys: List<ConfigKey>? = null) : RemoteConfigClient

In-memory RemoteConfigClient fake seeded with fixed values, for consumer unit tests.

Link copied to clipboard
class FakeSpeechRecognizer(var script: List<SpeechRecognitionEvent> = emptyList(), var error: SpeechRecognitionException? = null) : SpeechRecognizing

Scripted SpeechRecognizing for consumer tests.

Link copied to clipboard
class FakeSpeechSynthesizer(var script: List<SpeechSynthesisEvent> = listOf(SpeechSynthesisEvent.Started, SpeechSynthesisEvent.Finished), var voicesToReturn: List<SpeechVoice> = emptyList(), var error: SpeechSynthesisException? = null) : SpeechSynthesizing

Scripted SpeechSynthesizing for consumer tests.

Link copied to clipboard

In-memory SyncCursorStore fake for consumer unit tests, avoiding a Room/mocking round-trip.

Link copied to clipboard
Link copied to clipboard

In-memory AnalyticsClient fake that records every call, for consumer unit tests.

Link copied to clipboard

In-memory KommonLogger that records every call, for asserting on library/app log output.