-
Notifications
You must be signed in to change notification settings - Fork 1
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 huffman table constructor from symbol-bitsize range #96
Conversation
96394da
to
d7a2481
Compare
Codecov Report
@@ Coverage Diff @@
## master #96 +/- ##
==========================================
+ Coverage 95.86% 98.62% +2.75%
==========================================
Files 11 11
Lines 290 290
==========================================
+ Hits 278 286 +8
+ Misses 12 4 -8
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
8b144ef
to
5bb362f
Compare
d7a2481
to
3cb36c5
Compare
3cb36c5
to
8bac466
Compare
0396f5d
to
bf73c0e
Compare
fb781a1
to
3079c1d
Compare
namespace huffman = ::starflate::huffman; | ||
using namespace huffman::literals; | ||
|
||
test("table with DEFLATE canonical code, example 1") = [] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If these examples are from the RFC, please add that in a comment or put that in the test desc string (like RFC example 1
instead of example 1
).
Also, do we get any more code coverage from having 2 examples vs just 1? If not then probably just 1 is enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think coverage will be the same with one example vs two. I'll remove the smaller one and update the test description to include "RFC"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated descriptions and added links to RFC examples. Coverage comes from the second test. First test verifies usability in constant expressions. I've replaced expect
with static_assert
to make that more clear.
6fffff8
to
0d12cbb
Compare
3079c1d
to
f596820
Compare
Add a constructor to huffman::table that takes a range of symbol-bitsize tuples. This commit also moves public tag types into a utility header. Change-Id: Ia125173ce91e2e189c23de0956d9eaa7aa51762c
f596820
to
5360f66
Compare
Add a constructor to huffman::table that takes a range of symbol-bitsize
tuples.
This commit also moves public tag types into a utility header.
Change-Id: Ia125173ce91e2e189c23de0956d9eaa7aa51762c