Commit 568f0e2
authored
fix: check the correctness of the leaf ranges (#268)
<!--
Please read and fill out this form before submitting your PR.
Please make sure you have reviewed our contributors guide before
submitting your
first PR.
-->
## Overview
Closes: #267
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Strengthened error handling for subtree root verification and leaf
range calculations to improve robustness against invalid inputs.
- **Bug Fixes**
- Enhanced validation processes to prevent incorrect operations and
ensure reliable range processing.
- **Tests**
- Refined test cases to focus on relevant scenarios and added new tests
for improved coverage of edge cases related to error handling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 1278ba2 commit 568f0e2
2 files changed
Lines changed: 69 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
531 | 535 | | |
532 | 536 | | |
533 | 537 | | |
| |||
634 | 638 | | |
635 | 639 | | |
636 | 640 | | |
637 | | - | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
638 | 648 | | |
639 | 649 | | |
640 | 650 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1332 | 1332 | | |
1333 | 1333 | | |
1334 | 1334 | | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | | - | |
1340 | | - | |
1341 | | - | |
1342 | | - | |
1343 | | - | |
1344 | | - | |
1345 | | - | |
1346 | | - | |
1347 | 1335 | | |
1348 | 1336 | | |
1349 | 1337 | | |
| |||
1356 | 1344 | | |
1357 | 1345 | | |
1358 | 1346 | | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
1363 | | - | |
1364 | | - | |
1365 | 1347 | | |
1366 | 1348 | | |
1367 | 1349 | | |
| |||
1392 | 1374 | | |
1393 | 1375 | | |
1394 | 1376 | | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
1395 | 1407 | | |
1396 | 1408 | | |
1397 | 1409 | | |
| |||
1798 | 1810 | | |
1799 | 1811 | | |
1800 | 1812 | | |
1801 | | - | |
1802 | 1813 | | |
1803 | 1814 | | |
1804 | 1815 | | |
| |||
1828 | 1839 | | |
1829 | 1840 | | |
1830 | 1841 | | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
0 commit comments