How i can test function like this? ``` fun decodeI...
# random
m
How i can test function like this?
Copy code
fun decodeImageResource(imageResId: Int): Bitmap? {
    try {
        val options = BitmapFactory.Options().apply { inScaled = false }
        return BitmapFactory.decodeResource(AppResources.appContext?.resources, imageResId, options)
    } catch (e: Exception) {
        e.log()
    }
    return null
}