FakeDatabaseManager

A test double for DatabaseManager that provides a simple implementation and tracks calls.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val cacheLimit: StateFlow<Int>
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun getCurrentCacheLimit(): Int
Link copied to clipboard
open override fun hasDatabaseFor(address: String?): Boolean
Link copied to clipboard
open fun reset()

Resets all registered state flows and custom actions to their initial state.

Link copied to clipboard
open override fun setCacheLimit(limit: Int)
Link copied to clipboard
open suspend override fun switchActiveDatabase(address: String?)