biscuit-auth / biscuit-rust

Rust implementation of the Biscuit authorization token
https://www.biscuitsec.org
206 stars 28 forks source link

feat: add `.type()` unary method #201

Open divarvel opened 8 months ago

divarvel commented 8 months ago

Add .type() method and associated tests.

codspeed-hq[bot] commented 3 months ago

CodSpeed Performance Report

Merging #201 will not alter performance

Comparing typeof (1214892) with v5 (525c278)

Summary

✅ 12 untouched benchmarks

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 71.87500% with 9 lines in your changes missing coverage. Please review.

Project coverage is 68.76%. Comparing base (525c278) to head (1214892).

Files Patch % Lines
biscuit-auth/src/datalog/expression.rs 46.15% 7 Missing :warning:
biscuit-auth/src/token/builder.rs 0.00% 1 Missing :warning:
biscuit-parser/src/builder.rs 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## v5 #201 +/- ## ========================================== + Coverage 68.57% 68.76% +0.18% ========================================== Files 25 25 Lines 5681 5711 +30 ========================================== + Hits 3896 3927 +31 + Misses 1785 1784 -1 ```

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