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

go-playground / validator / 21856889411
74%
v8: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/golang.org/x/crypto-0.48.0
DEFAULT BRANCH: v8
Ran 10 Feb 2026 08:13AM UTC
Jobs 1
Files 34
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

10 Feb 2026 08:12AM UTC coverage: 73.849% (+0.02%) from 73.832%
21856889411

Pull #1530

github

veeceey
fix: prevent panic in unique validation with nil pointer elements

The `unique` tag panics when validating slices or maps containing nil
pointer elements. This affects three code paths in isUnique: slices
without a field param, slices with a field param (unique=Field), and
maps with pointer values.

The fix safely skips nil elements after reflect.Indirect returns a zero
Value, and treats multiple nil entries as duplicates (not unique).

Fixes #1319

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pull Request #1530: fix: prevent panic in unique validation with nil pointer elements

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

14470 of 19594 relevant lines covered (73.85%)

81.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 21856889411.1 10 Feb 2026 08:13AM UTC 34
73.85
GitHub Action Run
Source Files on build 21856889411
  • Tree
  • List 34
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1530
  • PR Base - master (#21733780062)
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