Olaf Gottschalk
Olaf Gottschalk
@sgerke-1L that was a *very* good question! When this specific class and test were born, we already used 1.14.0! 1.13.17: fails with ``` 10:48:01.174 [pool-1-thread-1 @coroutine#408] WARN i.m.p.j.t.InliningClassTransformer - Failed...
Also, WHY can't I reproduce this issue with a small Demo class? The problem is: I do not know WHICH type is unknown or which function makes this not work....
I can confirm that, because after this WARN from the "failed to transform" what I get is this NPE because of an access of the uninitialized member. Due to your...
IMHO, if a user of MockK sees an error like this `Failed to transform class Foo java.lang.TypeNotPresentException: Type not present`, there is little to no information on what exactly to...
Ok. I finally found it by copying function after function from the failing real thing into the Demo class. And, here is the culprit: MockK cannot mock a function returning...
A few more thoughts: the NPE was thrown *in* the unit test, because the statement to define the return value simply called the not-mocked-instance (with uninitialized members!) I think, *if*...
Will close this issue! Created a new one which is more explicit. I am not sure if your really want a dependency to Arrow in your project, but I will...
@Raibaz I have a fork of mockk with a new branch. How can I get this over to this repo without creating a PR to master?
Could it be that in your contextual bridge function you did not put all of the contract definition as done by the Raise member functions? I.e.: `ensureNotNull` misses the invocation...
@Raibaz this is my new issue, also created a PR adding the reproducer to client-tests module!