alpenlabs / strata

Rust implementation of the Strata protocol
https://docs.stratabtc.org
Apache License 2.0
23 stars 1 forks source link

Issue str 100/macro buf impl #429

Closed sudikshyapant closed 2 weeks ago

sudikshyapant commented 3 weeks ago

Description

This PR refactors the Buf20, Buf32, and Buf64 types to use a macro for generating their common implementations.

Type of Change

Checklist

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 88.23529% with 6 lines in your changes missing coverage. Please review.

Project coverage is 57.64%. Comparing base (a2d835c) to head (80e5529). Report is 20 commits behind head on main.

Files with missing lines Patch % Lines
crates/primitives/src/macros.rs 88.23% 6 Missing :warning:
@@            Coverage Diff             @@
##             main     #429      +/-   ##
==========================================
- Coverage   57.74%   57.64%   -0.11%     
==========================================
  Files         263      264       +1     
  Lines       27538    27685     +147     
==========================================
+ Hits        15902    15959      +57     
- Misses      11636    11726      +90     
Files with missing lines Coverage Δ
crates/primitives/src/macros.rs 88.23% <88.23%> (ø)

... and 10 files with indirect coverage changes