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

Cleanup codecs interface. #32

Merged
merged 3 commits into from
Jul 13, 2024
Merged

Cleanup codecs interface. #32

merged 3 commits into from
Jul 13, 2024

Conversation

zoj613
Copy link
Owner

@zoj613 zoj613 commented Jul 13, 2024

No description provided.

This attempts to make it more ergonomic to specify a codec
chain while also retaining the ability to preserve codec
chain invariants using the type system.
@zoj613 zoj613 added codecs relating to codecs refactoring labels Jul 13, 2024
Copy link

codecov bot commented Jul 13, 2024

Codecov Report

Attention: Patch coverage is 95.08197% with 3 lines in your changes missing coverage. Please review.

Project coverage is 95.06%. Comparing base (8f21a53) to head (6333f04).

Files Patch % Lines
lib/codecs/array_to_array.ml 87.50% 1 Missing ⚠️
lib/codecs/array_to_bytes.ml 94.11% 1 Missing ⚠️
lib/codecs/codecs.ml 96.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #32      +/-   ##
==========================================
- Coverage   95.17%   95.06%   -0.11%     
==========================================
  Files          13       13              
  Lines        1098     1094       -4     
==========================================
- Hits         1045     1040       -5     
- Misses         53       54       +1     

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

This is achieved by using the interface trick so that type definitions
are contained in one place.
@zoj613 zoj613 force-pushed the codecs_api branch 2 times, most recently from 5189894 to e57e8da Compare July 13, 2024 14:34
@zoj613 zoj613 merged commit 2303b7e into main Jul 13, 2024
3 of 4 checks passed
@zoj613 zoj613 deleted the codecs_api branch July 13, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codecs relating to codecs refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant