every { File(“abc”).endsWith(any<String>()) } returns true
In Kotlin there is a special directive to guide compiler what file to put such top-level functions. It is called
@file:JvmName
[snip]
kyleg
12/30/2019, 7:44 PM
Seems like while what you say is usually true, it is not true all the time. “Sometimes names are fancy”
k
Karolis
12/30/2019, 7:44 PM
TIL, thanks! Didn't know about those fancy names.
k
kyleg
12/30/2019, 7:45 PM
No problem. I’m just lucky I found those docs. I got it working, but hit a wall, refactored, then realized I could have spied instead of mocked. Oh well, you live, you learn 🙂