How to mock test an inline function?
l
How to mock test an inline function?
l
It's impossible to mock inline functions, as they don't exist in bytecode
They get inlined
You must either mock the internals of the inline function (things inside the function)
Or don't mock inline functions altogether, test their behavior and not how they do it
l
ok
u
(or dont inline them)
l
Oh, yes, you may give up on inlining if you're not using inline-specific features (such as reified type parameters)
2175 Views