risor-io / risor

Fast and flexible scripting for Go developers and DevOps.
https://risor.io
Apache License 2.0
576 stars 24 forks source link

Add gzip codec #200

Closed myzie closed 4 months ago

myzie commented 4 months ago
>>> encode("TEST", "gzip")
byte_slice("\x1f\x8b\b\x00\x00\x00\x00\x00\x00\xff\nq\r\x0e\x01\x04\x00\x00\xff\xff\xb8\x93\xea\xee\x04\x00\x00\x00")
>>> encode("TEST", "gzip") | decode("gzip")
byte_slice("TEST")
codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 50.00000% with 12 lines in your changes are missing coverage. Please review.

Project coverage is 31.35%. Comparing base (21602e4) to head (aed01ab).

Files Patch % Lines
builtins/codecs.go 50.00% 6 Missing and 6 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #200 +/- ## ========================================== + Coverage 30.97% 31.35% +0.38% ========================================== Files 113 113 Lines 14505 14529 +24 ========================================== + Hits 4493 4556 +63 + Misses 9461 9398 -63 - Partials 551 575 +24 ```

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