mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
tests: replace godebug by go-cmp for structure diffs
go-cmp is stricter and allow to catch more problems. Moreover, the output is a bit nicer.
This commit is contained in:
@@ -141,7 +141,7 @@ func Mark() Pos {
|
||||
// String returns a textual representation of a Pos.
|
||||
func (p Pos) String() string {
|
||||
if p.file != "" {
|
||||
return fmt.Sprintf("%s:%d", p.file, p.line)
|
||||
return fmt.Sprintf("%s:%d: ", p.file, p.line)
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user