go-message
go-message copied to clipboard
Optimize Entity.WriteTo when encoding/charset are unchanged
Closes: https://github.com/emersion/go-message/issues/86
Codecov Report
Merging #87 into master will increase coverage by
0.20%. The diff coverage is95.65%.
@@ Coverage Diff @@
## master #87 +/- ##
==========================================
+ Coverage 79.49% 79.70% +0.20%
==========================================
Files 15 15
Lines 995 1005 +10
==========================================
+ Hits 791 801 +10
Misses 128 128
Partials 76 76
| Impacted Files | Coverage Δ | |
|---|---|---|
| writer.go | 72.54% <83.33%> (+1.12%) |
:arrow_up: |
| entity.go | 93.22% <100.00%> (+1.06%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update f828d02...584bd27. Read the comment docs.
This doesn't work if Entity.Body is set to something else by the library user.