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

Custom message factory #171

Open
bshastry opened this issue Apr 24, 2020 · 2 comments
Open

Custom message factory #171

bshastry opened this issue Apr 24, 2020 · 2 comments

Comments

@bshastry
Copy link
Contributor

Hello,

How could I get libprotobuf-mutator to use a custom message factory (https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message#MessageFactory) that I define for mutations? Could you suggest projects making use of such a thing?

The messages created by libprotobuf by default (factory = nullptr) are quite poor in quality.

@bshastry
Copy link
Contributor Author

Perhaps, one way to expose this to external projects is to register message factories in the same way as post processors for a message type are currently registered.

@vitalybuka
Copy link
Collaborator

Is the problem just nullptr?
We maybe we can use generated_factory?

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