Run a test specifically designed to stress complex tree structures
()
| 487 | |
| 488 | |
| 489 | def run_complex_structure_test(): |
| 490 | """Run a test specifically designed to stress complex tree structures""" |
| 491 | # Increase recursion limit for deep trees |
| 492 | import sys |
| 493 | |
| 494 | old_limit = sys.getrecursionlimit() |
| 495 | try: |
| 496 | sys.setrecursionlimit(5000) |
| 497 | tester = BPlusTreeFuzzTester( |
| 498 | capacity=3, prepopulate=1000 |
| 499 | ) # Reduced to avoid recursion issues |
| 500 | return tester.run_fuzz_test(50000) |
| 501 | finally: |
| 502 | sys.setrecursionlimit(old_limit) |
| 503 | |
| 504 | |
| 505 | def run_varied_capacity_tests(): |
no test coverage detected