This repository was archived by the owner on Nov 10, 2025. It is now read-only.
Commit 47749f4
feat: add exception for encoding/json.decoder.Token
As noted in https://pkg.go.dev/encoding/json#Decoder.Token,
it can return io.EOF.
Add a test case.
Signed-off-by: Kir Kolyshkin <[email protected]>1 parent bbdc417 commit 47749f4
2 files changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
255 | | - | |
| 254 | + | |
| 255 | + | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
258 | 262 | | |
| 263 | + | |
259 | 264 | | |
260 | 265 | | |
261 | 266 | | |
| |||
0 commit comments