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-car
Commits
dce53904
Commit
dce53904
authored
Jun 03, 2021
by
Rod Vagg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: make sure we get an error where we expect one
parent
dde2a732
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
car_test.go
car_test.go
+3
-0
No files found.
car_test.go
View file @
dce53904
...
...
@@ -308,6 +308,9 @@ func TestBadHeaders(t *testing.T) {
for
_
,
tc
:=
range
testCases
{
t
.
Run
(
tc
.
name
,
func
(
t
*
testing
.
T
)
{
err
:=
makeCar
(
t
,
tc
.
hex
)
if
err
==
nil
{
t
.
Fatal
(
"expected error from bad header, didn't get one"
)
}
if
tc
.
errStr
!=
""
{
if
err
.
Error
()
!=
tc
.
errStr
{
t
.
Fatalf
(
"bad error: %v"
,
err
)
...
...
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