• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jhillyerd / enmime / 32925986025
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v2.5.0
DEFAULT BRANCH: main
Ran 26 Aug 2026 03:20AM UTC
Jobs 2
Files 40
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Aug 2026 03:18AM UTC coverage: 86.684% (+0.1%) from 86.576%
32925986025

Pull #412

github

ChrisJr404
Add MarshalJSON to Envelope and Part

json.Marshal on an Envelope currently fails with "encountered a cycle via
*enmime.Part" because each child Part links back to its Parent, and the same
parts are also reachable through Attachments, Inlines and OtherParts.

Give Part a MarshalJSON that drops the Parent/FirstChild/NextSibling links so a
part serializes on its own, and give Envelope a MarshalJSON that emits the
content most callers want (headers, text and html bodies, and the flat part
lists) while leaving out Root so the whole tree isn't duplicated. Also tag the
Error fields so they serialize with sensible keys.

Fixes #146
Pull Request #412: Add MarshalJSON to Envelope and Part

31 of 31 new or added lines in 1 file covered. (100.0%)

3359 of 3875 relevant lines covered (86.68%)

4257.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Go-1.26.x - 32925986025.1 26 Aug 2026 03:20AM UTC 40
86.68
GitHub Action Run
2 Go-1.25.x - 32925986025.2 26 Aug 2026 03:20AM UTC 40
86.68
GitHub Action Run
Source Files on build 32925986025
  • Tree
  • List 40
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #412
  • PR Base - main (#31622775533)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc