Files
dualfroz 9337ead2bc feat(assert): use String() for Stringer types in diff output
Values whose type, or slice or array element type, implements
fmt.Stringer are now rendered through their String method in the diff
section of a failed assertion. Previously a named string such as
peer.ID was dumped as raw escaped bytes, which is unreadable.

This affects diff presentation only. Equality is still decided by
ObjectsAreEqual and is unaffected. The default spew config keeps
DisableMethods for every other type, matching the existing time.Time
handling in diff.

Refs #1215
2026-09-02 09:43:14 +02:00
..