It'd be nice if there were a way to mark the generated classes and functions as public rather than internal.
In our ~150-module project, we use test fixtures to share common mocks and fakes. This lets us limit where we do KSP processing and the number of generated classes. Right now, we can't share the classes generated by MocKMP out of the box because they are internal.
The workaround is to provide our own public method, e.g.
fun anyPerson() = fakePerson()
fun mockDatabase(mocker: Mocker) = MockDatabase(mocker)
It'd be great if we didn't even have to include this boilerplate.
It'd be nice if there were a way to mark the generated classes and functions as
public
rather thaninternal
.In our ~150-module project, we use test fixtures to share common mocks and fakes. This lets us limit where we do KSP processing and the number of generated classes. Right now, we can't share the classes generated by MocKMP out of the box because they are
internal
.The workaround is to provide our own public method, e.g.
It'd be great if we didn't even have to include this boilerplate.