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:
@@ -39,6 +39,11 @@ func (qc Column) String() string {
|
||||
return qc.name
|
||||
}
|
||||
|
||||
// Equal returns true iff two columns have the same name.
|
||||
func (qc Column) Equal(oqc Column) bool {
|
||||
return qc.name == oqc.name
|
||||
}
|
||||
|
||||
// MarshalText turns a column into a string.
|
||||
func (qc Column) MarshalText() ([]byte, error) {
|
||||
return []byte(qc.name), nil
|
||||
|
||||
Reference in New Issue
Block a user