Main function for standalone execution
()
| 199 | |
| 200 | |
| 201 | def main(): |
| 202 | """Main function for standalone execution""" |
| 203 | import unittest |
| 204 | |
| 205 | # Create test suite |
| 206 | suite = unittest.TestSuite() |
| 207 | suite.addTest(unittest.makeSuite(TestRingBufferSimple)) |
| 208 | |
| 209 | # Run tests |
| 210 | runner = unittest.TextTestRunner(verbosity=2) |
| 211 | result = runner.run(suite) |
| 212 | |
| 213 | # Return appropriate exit code |
| 214 | return 0 if result.wasSuccessful() else 1 |
| 215 | |
| 216 | |
| 217 | if __name__ == "__main__": |
no test coverage detected