Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Option to mark generated code as public #40

Closed
bsstokes opened this issue Nov 1, 2022 · 1 comment
Closed

Feature request: Option to mark generated code as public #40

bsstokes opened this issue Nov 1, 2022 · 1 comment

Comments

@bsstokes
Copy link

bsstokes commented Nov 1, 2022

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.

@bsstokes bsstokes changed the title Feature request: Option to mark generated as public Feature request: Option to mark generated code as public Nov 1, 2022
@SalomonBrys
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants