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

xu-chris / toon_ex / 9810e86e87c1337ea1abc96aa0a5a2579db78dfe
68%

Build:
DEFAULT BRANCH: main
Ran 21 Jan 2026 11:41AM UTC
Jobs 1
Files 19
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

21 Jan 2026 11:41AM UTC coverage: 67.867%. Remained the same
9810e86e87c1337ea1abc96aa0a5a2579db78dfe

push

github

web-flow
fix(types): accept term() for encoder input to support structs (#14)

The Toon.Encoder protocol normalizes input before encoding, so the
public API should accept any term() - not just pre-normalized types.

Changes:
- Add Toon.Types.input() type as term() for encoder parameters
- Update encode/1,2 and encode!/1,2 specs to use input()
- Keep encodable() for normalized output (string-keyed maps)
- Add tests for struct and atom-key encoding via public API

This fixes Dialyzer warnings when calling Toon.encode!/1 with:
- Ecto schemas (structs with atom keys)
- Maps with atom keys
- Any type implementing the Toon.Encoder protocol

Co-authored-by: Chris Xu <git@chrisxu.me>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

716 of 1055 relevant lines covered (67.87%)

19.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9810e86e87c1337ea1abc96aa0a5a2579db78dfe.1 21 Jan 2026 11:41AM UTC 19
67.87
GitHub Action Run
Source Files on build 9810e86e87c1337ea1abc96aa0a5a2579db78dfe
  • Tree
  • List 19
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9810e86e on github
  • Prev Build on main (#039BD557...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc