Unverified Commit 30e4b351 authored by Eric Myhre's avatar Eric Myhre Committed by GitHub

Merge pull request #67 from mvdan/fix-go-test

all: make 'go test ./...' pass on Go 1.15
parents 13d5197c d69aba8b
......@@ -24,7 +24,7 @@ func TestSimple(t *testing.T) {
st := state{}
Wish(t, stride(&st, n), ShouldEqual, nil)
Wish(t, st.tables, ShouldEqual, map[tableGroupID]*table{
"path": &table{
"path": {
entryStyles: map[columnName]entryStyle{"path": entryStyle_column, "moduleName": entryStyle_column, "status": entryStyle_column},
keySize: map[columnName]int{"path": 6, "moduleName": 12, "status": 8},
cols: []columnName{"path", "moduleName", "status"},
......
......@@ -42,7 +42,7 @@ type codecAborted struct {
}
func (e codecAborted) Error() string {
return fmt.Sprintf("codec aborted: %s", e)
return fmt.Sprintf("codec aborted: %s", e.e)
}
// attempt to record where the codec efforts encountered an error.
......
......@@ -119,7 +119,7 @@ func (e ErrInvalidSegmentForList) Error() string {
if e.TypeName != "" {
v += " of type " + e.TypeName
}
return v + fmt.Sprintf(": %q: %s", e.TroubleSegment.s, e)
return v + fmt.Sprintf(": %q: %s", e.TroubleSegment.s, e.Reason)
}
// ErrUnmatchable is the catch-all type for parse errors in schema representation work.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment