mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor(test): Migrate core modules from MockK to Mokkery
This commit is contained in:
parent
3c5d15cc5d
commit
7522d38fbc
79 changed files with 539 additions and 1481 deletions
|
|
@ -21,7 +21,7 @@ import androidx.room.PrimaryKey
|
|||
import org.meshtastic.core.model.MyNodeInfo
|
||||
|
||||
@Entity(tableName = "my_node")
|
||||
data class MyNodeEntity(
|
||||
open class MyNodeEntity(
|
||||
@PrimaryKey(autoGenerate = false) val myNodeNum: Int,
|
||||
val model: String?,
|
||||
val firmwareVersion: String?,
|
||||
|
|
@ -39,7 +39,7 @@ data class MyNodeEntity(
|
|||
val firmwareString: String
|
||||
get() = "$model $firmwareVersion"
|
||||
|
||||
fun toMyNodeInfo() = MyNodeInfo(
|
||||
open fun toMyNodeInfo() = MyNodeInfo(
|
||||
myNodeNum = myNodeNum,
|
||||
hasGPS = false,
|
||||
model = model,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue