Hi guys! Just a question, let’s say I have an auto...
# mockk
t
Hi guys! Just a question, let’s say I have an auto-closeable resource where a call
use {}
. Because this is a resource to an external dependency, I’m mocking it, but I still need to run the code inside that block for my test… How should approach this? Basically production code:
Copy code
resource.use {
  resource.doSomething()
// ...
//<some code I want to test>
  resource.doOtherStuff()  //some i call I want to verify, for example
}