unit/btree

Just added a new unit test suite that covers basic B-Tree operations including empty trees, add_find (), remove () and iteration functions.

> make unit T=btree
CC tests/unit/test_btree-test_btree.o
CCLD tests/unit/test_btree
UNITTEST tests/unit/test_btree
Running test suite with seed 0xd9494352...
btree.empty [ OK ] [ 0.00000157 / 0.00000060 CPU ]
btree.add_find [ OK ] [ 0.00000719 / 0.00000690 CPU ]
btree.remove [ OK ] [ 0.00000606 / 0.00000575 CPU ]
btree.walk [ OK ] [ 0.00000379 / 0.00000380 CPU ]
4 of 4 (100%) tests successful, 0 (0%) test skipped.

https://github.com/openzfs/zfs/pull/18690


Leave a comment

Discover more from /root

Subscribe now to keep reading and get access to the full archive.

Continue reading