MockK spy on top-level private function in Kotlin

前端 未结 0 1502
既然无缘
既然无缘 2021-02-19 17:29

I need to verify if bar function is called or not using MockK library.

MyFile.kt

fun foo() {
    bar()
}

private fun bar() { ... }

相关标签:
回答
  • 消灭零回复
提交回复
热议问题