MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / run

Method run

tests/test_pool.py:582–588  ·  view source on GitHub ↗
(N, meth)

Source from the content-addressed store, hash-verified

580 return 1
581
582 async def run(N, meth):
583 async with self.create_pool(database='postgres',
584 min_size=5, max_size=10) as pool:
585
586 coros = [meth(pool) for _ in range(N)]
587 res = await asyncio.gather(*coros)
588 self.assertEqual(res, [1] * N)
589
590 methods = [test_fetch, test_fetchrow, test_fetchval,
591 test_execute, test_execute_with_arg]

Callers 15

git_commitishFunction · 0.80
mainFunction · 0.80
__init__.pyFile · 0.80
test_tests_fail_1Method · 0.80
test_flake8Method · 0.80
test_mypyMethod · 0.80
get_statusMethod · 0.80
initMethod · 0.80
startMethod · 0.80
reloadMethod · 0.80
stopMethod · 0.80
reset_walMethod · 0.80

Calls 1

create_poolMethod · 0.45

Tested by

no test coverage detected