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

jhillyerd / enmime / 33983401449
87%

Build:
DEFAULT BRANCH: main
Ran 05 Sep 2026 06:14PM 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

05 Sep 2026 06:13PM UTC coverage: 86.742% (+0.1%) from 86.636%
33983401449

push

github

web-flow
Add MarshalJSON to Envelope and Part (#412)

* 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

* Document that Part.MarshalJSON omits child parts

---------

Co-authored-by: Chris (ChrisJr404) <11917633+ChrisJr404@users.noreply.github.com>

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

3376 of 3892 relevant lines covered (86.74%)

4239.45 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Go-1.25.x - 33983401449.1 05 Sep 2026 06:14PM UTC 40
86.74
GitHub Action Run
2 Go-1.26.x - 33983401449.2 05 Sep 2026 06:15PM UTC 40
86.74
GitHub Action Run
Source Files on build 33983401449
  • Tree
  • List 40
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 14b06272 on github
  • Prev Build on main (#33265715442)
  • Next Build on main (#33988331936)
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