Commit a0db45a
fix(file-provider): static DateFormatter + edge-case tests
- Extract DateFormatter in FileProviderItem.filename (saveStateFile) to a
private static lazy property — eliminates repeated allocation on every
filename access without changing output behaviour
- Add edge-case tests: parseSaveStateID/parseSaveStateGameMD5 with empty
content after prefix, parseScreenshotID must not match sc-game: prefix,
screenshotItemIdentifier round-trip with zero index
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ab94423 commit a0db45a
File tree
2 files changed
+27
-5
lines changed- Extensions/ROM File Provider
- PVPrimitives/Tests/PVPrimitivesTests
2 files changed
+27
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
| 254 | + | |
259 | 255 | | |
260 | 256 | | |
261 | 257 | | |
| |||
425 | 421 | | |
426 | 422 | | |
427 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
428 | 433 | | |
429 | 434 | | |
430 | 435 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| |||
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
108 | 125 | | |
109 | 126 | | |
110 | 127 | | |
| |||
0 commit comments