()
| 70 | |
| 71 | |
| 72 | def test_is_coroutine_callable(): |
| 73 | async def test1(): ... |
| 74 | |
| 75 | def test2(): ... |
| 76 | |
| 77 | class TestClass1: |
| 78 | async def __call__(self): ... |
| 79 | |
| 80 | class TestClass2: |
| 81 | def __call__(self): ... |
| 82 | |
| 83 | assert is_coroutine_callable(test1) |
| 84 | assert not is_coroutine_callable(test2) |
| 85 | assert not is_coroutine_callable(TestClass1) |
| 86 | assert is_coroutine_callable(TestClass1()) |
| 87 | assert not is_coroutine_callable(TestClass2) |
| 88 | |
| 89 | |
| 90 | def test_is_gen_callable(): |
nothing calls this directly
no test coverage detected