fmonniot / scala3mock

Mocking framework for Scala 3
https://francois.monniot.eu/scala3mock
Other
19 stars 1 forks source link

Add support for methods with default values #54

Closed fmonniot closed 2 weeks ago

fmonniot commented 2 weeks ago

This should resolve the issue raised in #53. It turned out that there is no real way to know if a method is generated by the compiler or not (at least on 3.2), so instead I use the fact that default values follow the same naming schemes to exclude them from the list of the methods to override in the mock.