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

Remove unneeded json (de-)serialization code generators for codecs. #13

Merged
merged 7 commits into from
Jul 5, 2024

Conversation

zoj613
Copy link
Owner

@zoj613 zoj613 commented Jul 5, 2024

  • Gzip and CRC32c codecs have a simple configuration that does not need
    code generators to implement correct json deserialization/serialization.
  • This allows us to do more thorough parsing of the configuration
    like checking for emptiness, value max and signedness of order
    elements when reading from a JSON document.
  • This manually implements the (de)serializatioin functions since
    they are not complicated. This allows for better error reporting
    messages.
  • Also improve test coverage of codecs to reflect correctness of implementations.

Gzip and CRC32c codecs have a simple configuration that does not need
code generators to implement correct json deserialization/serialization.
This allows us to do more thorough parsing of the configuration
like checking for emptiness, value max and signedness of order
elements when reading from a JSON document.
This manually implements the (de)serializatioin functions since
they are not complicated. This allows for better error reporting
messages.
@zoj613 zoj613 added enhancement New feature or request codecs relating to codecs tests relating to tests labels Jul 5, 2024
Copy link

codecov bot commented Jul 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.00%. Comparing base (21218a5) to head (63884c6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #13      +/-   ##
==========================================
+ Coverage   73.75%   80.00%   +6.24%     
==========================================
  Files          13       13              
  Lines        1002     1010       +8     
==========================================
+ Hits          739      808      +69     
+ Misses        263      202      -61     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zoj613 zoj613 merged commit 61b9b32 into main Jul 5, 2024
4 checks passed
@zoj613 zoj613 deleted the crc branch July 5, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codecs relating to codecs enhancement New feature or request tests relating to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant