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

tecnickcom / gogen / 28865989235
100%

Build:
DEFAULT BRANCH: main
Ran 07 Jul 2026 12:30PM UTC
Jobs 1
Files 168
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

07 Jul 2026 12:26PM UTC coverage: 99.971%. Remained the same
28865989235

push

github

nicolaasuni
feat(timeutil): add sentinel errors, fix numeric overflow, handle JSON null, and implement text marshaling

- Add exported sentinel errors ErrInvalidDuration, ErrDurationOverflow, and ErrParseDateTime, wrapped at every error site so callers can branch with errors.Is.
- Fix Duration.UnmarshalJSON silently corrupting numeric values above MaxInt64: the float64 fallback now range-checks and returns ErrDurationOverflow instead of an implementation-defined garbage value.
- Treat JSON null as a no-op in Duration.UnmarshalJSON and DateTime.UnmarshalJSON, matching time.Time and preventing a single null field from aborting the whole document.
- Implement encoding.TextMarshaler/TextUnmarshaler on Duration and DateTime so both can be used as JSON map keys and with text-based encoders (YAML, TOML, flag.TextVar); note that map[Duration] JSON keys now serialize as human-readable strings (e.g. "1h30m0s") rather than nanoseconds.
- Replace (*new(T)).Format() with a named zero value in DateTime, extract Duration.fromNumber/fromString helpers, and delegate DateTime.UnmarshalJSON to UnmarshalText to keep the unmarshalers readable.
- Document fractional-nanosecond truncation, the UTC assumption for zone-less layouts, and null handling; list TDateTime and TJira in the package doc.

52 of 52 new or added lines in 2 files covered. (100.0%)

13857 of 13861 relevant lines covered (99.97%)

891.03 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28865989235.1 07 Jul 2026 12:30PM UTC 168
99.97
GitHub Action Run
Source Files on build 28865989235
  • Tree
  • List 168
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28865989235
  • 1c86e9f1 on github
  • Prev Build on main (#28864750799)
  • Next Build on main (#28867038265)
  • Delete
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