Код: Выделить всё
fun foo(){
// some logic
}
Код: Выделить всё
internal class FooBarTest {
private val barMock = mockk()
// ...
@Test
fun `test something`() = runTest {
every { barMock.foo() } answers {}
//...
}
}
В чем разница между ответами {} и просто запуском ?
Подробнее здесь: https://stackoverflow.com/questions/790 ... and-answer
Мобильная версия