Run ring buffer tests with proper setup
()
| 1554 | |
| 1555 | |
| 1556 | def run_ring_buffer_tests(): |
| 1557 | """Run ring buffer tests with proper setup""" |
| 1558 | print("Running Ring Buffer Tests...") |
| 1559 | print("=" * 50) |
| 1560 | |
| 1561 | # Create test suite |
| 1562 | suite = unittest.TestSuite() |
| 1563 | |
| 1564 | # Add ring buffer tests |
| 1565 | suite.addTest(unittest.makeSuite(TestRingBuffer)) |
| 1566 | suite.addTest(unittest.makeSuite(TestRingBufferIntegration)) |
| 1567 | |
| 1568 | # Run tests |
| 1569 | runner = unittest.TextTestRunner(verbosity=2) |
| 1570 | result = runner.run(suite) |
| 1571 | |
| 1572 | print("=" * 50) |
| 1573 | print(f"Tests run: {result.testsRun}") |
| 1574 | print(f"Failures: {len(result.failures)}") |
| 1575 | print(f"Errors: {len(result.errors)}") |
| 1576 | |
| 1577 | return result.wasSuccessful() |
| 1578 | |
| 1579 | |
| 1580 | def demo_ring_buffer_schema(): |
no test coverage detected