MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / async_routine

Method async_routine

test/functional/interface_ipc.py:42–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 14

make_capnp_init_ctxFunction · 0.90
assert_equalFunction · 0.90
make_mining_ctxFunction · 0.90
echoMethod · 0.80
destroyMethod · 0.80
isTestChainMethod · 0.80
getTipMethod · 0.80
makeMiningOld2Method · 0.80
createNewBlockMethod · 0.80
assert_debug_logMethod · 0.80
waitNextMethod · 0.80
makeEchoMethod · 0.45

Tested by

no test coverage detected