goldmark/testutil
Abhinav Gupta 282e1428bc ParseTestCaseFile: Don't panic
Instead of panicking, ParseTestCaseFile now reports errors.
The errors take the form,

    line $line: $msg: $cause

For example,

    line 12: invalid case No: parse error

As a result of this change,
we no longer discard the error returned by strconv.Atoi or json.Marshal
when we reject the test file,
and include it in the error message instead.

Note that the errors do not include the file name
because the file name is always the same
so the caller can add that if necessary
(which it will, in the next commit).
2022-11-11 08:24:20 -08:00
..
testutil.go ParseTestCaseFile: Don't panic 2022-11-11 08:24:20 -08:00
testutil_test.go ParseTestCaseFile: Don't panic 2022-11-11 08:24:20 -08:00