()
| 132 | |
| 133 | |
| 134 | def main() -> int: |
| 135 | # For debugging dummyserver itself - PYTHONPATH=src python -m dummyserver.hypercornserver |
| 136 | from .app import hypercorn_app |
| 137 | |
| 138 | config = Config() |
| 139 | config.bind = ["localhost:0"] |
| 140 | shutdown_event = trio.Event() |
| 141 | trio.run(_start_server, config, hypercorn_app, shutdown_event) |
| 142 | return 0 |
| 143 | |
| 144 | |
| 145 | if __name__ == "__main__": |
no test coverage detected