Commit cbf83d9
Test MEMORY mode under chunkSizes matrix
The existing chunkSizes parametrized matrix in ReaderTest only routed
through Reader(File, int chunkSize), which hardcodes
FileMode.MEMORY_MAPPED. As a result the chunked file-MEMORY load path
in BufferHolder had no integration coverage — a remainder-chunk-sized-
wrong regression or an EOF-handling change could ship silently.
Add a package-private Reader(File, FileMode, int chunkSize) constructor
and a testMemoryMode(int chunkSize) test that mirrors test(int) but in
MEMORY mode. With chunk sizes 512/2048 against the test DBs (1285 and
2794 bytes), the multi-chunk + remainder branch is now exercised end
to end.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e2be3a5 commit cbf83d9
2 files changed
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | | - | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
86 | 105 | | |
87 | 106 | | |
88 | 107 | | |
| |||
0 commit comments