Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ld
go-ld-prime
Commits
30e4b351
Unverified
Commit
30e4b351
authored
Aug 25, 2020
by
Eric Myhre
Committed by
GitHub
Aug 25, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #67 from mvdan/fix-go-test
all: make 'go test ./...' pass on Go 1.15
parents
13d5197c
d69aba8b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
codec/jst/jst_test.go
codec/jst/jst_test.go
+1
-1
codec/jst/util.go
codec/jst/util.go
+1
-1
errors.go
errors.go
+1
-1
No files found.
codec/jst/jst_test.go
View file @
30e4b351
...
...
@@ -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"
},
...
...
codec/jst/util.go
View file @
30e4b351
...
...
@@ -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.
...
...
errors.go
View file @
30e4b351
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment