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

Add fuzzer to check round-tripping #6

Open
mgeisler opened this issue Aug 27, 2023 · 0 comments
Open

Add fuzzer to check round-tripping #6

mgeisler opened this issue Aug 27, 2023 · 0 comments

Comments

@mgeisler
Copy link
Contributor

Hi @BrettDong, thanks for maintaining the library. It's been very useful for me in mdbook-i18n-helpers!

Would you be up for adding some fuzzers to the library? I ran into an issue where I accidentally generated a .pot file with a update msgid "" entry: google/mdbook-i18n-helpers#64. I'm thinking to add fuzzers to guard against this: google/mdbook-i18n-helpers#65.

The fuzzer I have in mind would essentially use the public polib API to generate a .pot file and then check that it can be loaded — thereby checking that polib can load all files it generates. After loading the generated file, the fuzzer would check that the entries are identical to what was saved. This way we can be use that the library preserves the information.

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

1 participant