Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lyse
Combined Log
Commits
77767d9d
Commit
77767d9d
authored
Aug 11, 2022
by
Lysander Trischler
Browse files
Enforce error being a ParseError
parent
96e048bb
Pipeline
#352
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
combinedlog/log_test.go
View file @
77767d9d
...
...
@@ -105,6 +105,7 @@ func TestParseLine(t *testing.T) {
if
testCase
.
expectedError
!=
nil
{
assert
.
ErrorIs
(
t
,
err
,
testCase
.
expectedError
)
assert
.
EqualError
(
t
,
err
,
testCase
.
expectedErrorMsg
)
assert
.
IsType
(
t
,
ParseError
{},
err
)
assert
.
Equal
(
t
,
Entry
{},
entry
)
}
else
{
assert
.
NoError
(
t
,
err
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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