()
| 40 | def run_echo_test(self): |
| 41 | self.log.info("Running echo test") |
| 42 | async def async_routine(): |
| 43 | ctx, init = await make_capnp_init_ctx(self) |
| 44 | self.log.debug("Create Echo proxy object") |
| 45 | echo = init.makeEcho(ctx).result |
| 46 | self.log.debug("Test a few invocations of echo") |
| 47 | for s in ["hallo", "", "haha"]: |
| 48 | result_eval = (await echo.echo(ctx, s)).result |
| 49 | assert_equal(s, result_eval) |
| 50 | self.log.debug("Destroy the Echo object") |
| 51 | echo.destroy(ctx) |
| 52 | asyncio.run(capnp.run(async_routine())) |
| 53 | |
| 54 | def run_mining_test(self): |
nothing calls this directly
no test coverage detected