mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
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).
|
||
|---|---|---|
| .. | ||
| testutil.go | ||
| testutil_test.go | ||