setResult

fun setResult(hwModel: Int, target: String? = null, result: Result<DeviceHardware?>)(source)

Seeds an arbitrary Result for the given lookup (use to test failure paths).