Closed SimonMarquis closed 11 months ago
Thanks for the contribution! Before we can merge this, we need @SimonMarquis to sign the Salesforce Inc. Contributor License Agreement.
@SimonMarquis are you still planning to pursue this?
Yes! I couldn't find time for this in the last weeks. But I'll try to add tests this weekend and see how classes & methods checks could be merged.
Sounds good!
@ZacSweers I've added the MockDetectorOptionsTest
test class, but I've a hard time figuring out how to merge methods and classes.
I tried to find a way to access the fqn of the UCallExpression
, but did not find anything :/
I tried to find a way to access the fqn of the UCallExpression
I would expect this to work like so
node.resolve()
to get the underlying UMethod
Note that the fqcn likely includes the enclosing synthetic class for top-level functions
@SimonMarquis we'd like to merge this soon, do you still want to contribute it?
Oh, indeed.
But it seem's that MockK's reified mockk
method would be resolved to io.mockk.MockKKt.mockk
, while non-reified mockkClass
would be resolved to io.mockk.mockkClass
.
I'm not sure if this could be considered a good API though.
Also, I'm sorry, I wont be able to dedicate enough time to debug this in the near future.
No worries, I can take this over
Got it all working 👍
Thanks a lot for completing this PR!
Summary
This PR implements support for other mocking frameworks through Lint options:
99
Requirements