なぜだかゆううつだ。
『アイアンマン』『怪盗グルーのミニオン大脱走』を観た。
PAST 2 の A, B, C を解いた。
mockk でインスタンスの動作の一部を変更するには spyk
でできる。 https://mockk.io/#spy
data class Id(private val value: Int) { fun asString(): String = value.toString() } fun testSpy() { val id = spyk(Id(1)) id.asString() shouldBe "1" every { id.asString() } returns "55" id.asString() shouldBe "55" }