transparency-dev / trillian-tessera

Go library for building tile-based transparency logs (tlogs)
Apache License 2.0
11 stars 11 forks source link

Refactor leaf generation #115

Closed mhutchinson closed 3 months ago

mhutchinson commented 3 months ago

This moves instantiation of the leaf generation rules to the main function, which makes future work to support generating different types of leaves (e.g. x509 certs) easier to implement. Probability of duplicates has been moved to a flag, and some minor code inlining makes code better co-located.

codecov-commenter commented 3 months ago

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.

Project coverage is 28.62%. Comparing base (46ec9c2) to head (2fc54ee). Report is 33 commits behind head on main.

Files Patch % Lines
hammer/hammer.go 0.00% 11 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #115 +/- ## ========================================== - Coverage 35.80% 28.62% -7.18% ========================================== Files 16 31 +15 Lines 1363 2683 +1320 ========================================== + Hits 488 768 +280 - Misses 801 1828 +1027 - Partials 74 87 +13 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.