Meshtastic App
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Meshtastic App
core-testing
/
org.meshtastic.core.testing
/
FakeDatabaseProvider
Fake
Database
Provider
class
FakeDatabaseProvider
:
DatabaseProvider
(
source
)
A real
DatabaseProvider
that uses an in-memory database for testing.
Members
Constructors
Fake
Database
Provider
Link copied to clipboard
constructor
(
)
Properties
current
Db
Link copied to clipboard
open
override
val
currentDb
:
StateFlow
<
MeshtasticDatabase
>
Functions
close
Link copied to clipboard
fun
close
(
)
with
Db
Link copied to clipboard
open
suspend override
fun
<
T
>
withDb
(
block
:
suspend
(
MeshtasticDatabase
)
->
T
)
:
T
?