File tree Expand file tree Collapse file tree
src/pytest_codspeed/instruments Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55from typing import TYPE_CHECKING
66
77if TYPE_CHECKING :
8+ from collections .abc import Awaitable
89 from typing import Any , Callable , ClassVar , TypeVar
910
1011 import pytest
@@ -37,6 +38,17 @@ def measure(
3738 ** kwargs : P .kwargs ,
3839 ) -> T : ...
3940
41+ @abstractmethod
42+ async def measure_async (
43+ self ,
44+ marker_options : BenchmarkMarkerOptions ,
45+ name : str ,
46+ uri : str ,
47+ fn : Callable [P , Awaitable [T ]],
48+ * args : P .args ,
49+ ** kwargs : P .kwargs ,
50+ ) -> T : ...
51+
4052 @abstractmethod
4153 def measure_pedantic (
4254 self ,
@@ -46,6 +58,15 @@ def measure_pedantic(
4658 uri : str ,
4759 ) -> T : ...
4860
61+ @abstractmethod
62+ async def measure_pedantic (
63+ self ,
64+ marker_options : BenchmarkMarkerOptions ,
65+ pedantic_options : PedanticOptions [T ],
66+ name : str ,
67+ uri : str ,
68+ ) -> T : ...
69+
4970 @abstractmethod
5071 def report (self , session : pytest .Session ) -> None : ...
5172
You can’t perform that action at this time.
0 commit comments