upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/queue_proxy_test.cpp
diff options
context:
space:
mode:
authorRafael <rafaelalvesp2005@gmail.com>2026-11-22 03:46:31 -0300
committerRafael <rafaelalvesp2005@gmail.com>2026-11-22 08:29:13 -0300
commitab6b7ac8ede6c12052f40208af8b4aed364f67d3 (patch)
tree0144ce2cd5d01c4280f80d90f6b0d6bf676a3074 /runtime/test/queue_proxy_test.cpp
parentbb2e18421dac527374eb837c88b5063c5d96f81f (diff)
navmesh_decode: --limit carver counts match navmesh_index
A stream that starts inside a --limit window but ends past it was counted in carver_streams with all its stored bytes, so stored + zero_padding + unread could exceed the span (up to 122% on a 2 MiB window of navmeshes.rpf). navmesh_index.py (#766) does not count such a stream; its bytes inside the window are left to the tail. navmesh_decode now does the same and reports those streams under past_window / past_window_stored instead of dropping them. Decoding is unchanged: a resource that starts inside the window is still read to its end. Real data (counts only), four 2 MiB windows of navmeshes.rpf: byte classes now add up to exactly the span (main: 121.97%, 119.01%, 100.23%, 103.64%), and streams, stored, inflated, zero_padding and unread equal navmesh_index.py's on every window. Tests: the window-limit test now expects 1 carved stream + 1 past_window (main: 2); a new test ends the window inside a stream and checks nothing is carved and the classes sum to the span. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions