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

go-playground / validator / 45166852683
73%
v8: 100%

Build:
Build:
LAST BUILD BRANCH: fix/self-referential-extraction-loop
DEFAULT BRANCH: v8
Ran 23 Nov 2026 11:38AM UTC
Jobs 1
Files 37
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

23 Nov 2026 11:37AM UTC coverage: 72.664% (+0.02%) from 72.649%
45166852683

Pull #1700

github

tony1233200
fix: check unique values by value, not by type

reflect.Type.Comparable is true for a struct or array type with an
interface field, but hashing such a value still panics when the
interface holds a slice or map. Check reflect.Value.Comparable
instead, so those elements take the DeepEqual path like any other
unhashable value.

Tests: TestUniqueValidationUnhashableElements gains cases with an
interface field holding a slice ([]T, []any, [][1]any, map values),
distinct passes and duplicates fail. go test ./... passes.

Co-Authored-By: Muse Spark <muse-spark@meta.com>
Pull Request #1700: fix: prevent `unique` from panicking on unhashable elements

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

15670 of 21565 relevant lines covered (72.66%)

89.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45166852683.1 23 Nov 2026 11:38AM UTC 37
72.66
GitHub Action Run
Source Files on build 45166852683
  • Tree
  • List 37
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1700
  • PR Base - master (#44644256455)
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