Commit f93a63f
committed
test: rechunk_document preserves chunker doc_items (regression for #266 fix)
Locks the fix from the previous commit. The test seeds a completed
analysis + a mocked chunker that returns a `ChunkResult` with two
`ChunkDocItem` entries, then asserts:
- the in-memory chunks returned by `rechunk_document` carry the
expected `self_ref` list
- the persisted chunks (re-read via `list_chunks`) carry them too
This is the regression net for the silent data-loss bug where the
rechunk path created Chunk rows with `doc_items=[]`, breaking the
chunk↔bbox highlight on the Chunk view (#266).1 parent 7522ecb commit f93a63f
1 file changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
286 | 321 | | |
287 | 322 | | |
288 | 323 | | |
| |||
0 commit comments