|
| 1 | +from collections.abc import Callable, Sequence |
| 2 | +from typing import Final, TypeVar |
| 3 | + |
| 4 | +_T = TypeVar("_T") |
| 5 | + |
| 6 | +ALL_REMAINING: Final[int] # undocumented |
| 7 | + |
| 8 | +def Setup( |
| 9 | + args: Sequence[str], |
| 10 | + test_one_input: Callable[[bytes], None], |
| 11 | + /, |
| 12 | + **kwargs: bool | Callable[[bytes, int, int], str | bytes] | Callable[[bytes, bytes, int, int], str | bytes] | None, |
| 13 | +) -> list[str]: ... |
| 14 | +def Fuzz() -> None: ... |
| 15 | +def Mutate(data: bytes, max_size: int, /) -> bytes: ... |
| 16 | + |
| 17 | +class FuzzedDataProvider: |
| 18 | + def __init__(self, data: bytes, /) -> None: ... |
| 19 | + def ConsumeUnicode(self, count: int) -> str: ... |
| 20 | + def ConsumeUnicodeNoSurrogates(self, count: int, /) -> str: ... |
| 21 | + def ConsumeBytes(self, count: int, /) -> bytes: ... |
| 22 | + def ConsumeString(self, count: int, /) -> str: ... |
| 23 | + def ConsumeInt(self, byte_size: int, /) -> int: ... |
| 24 | + def ConsumeUInt(self, byte_size: int, /) -> int: ... |
| 25 | + def ConsumeIntInRange(self, min: int, max: int, /) -> int: ... |
| 26 | + def ConsumeIntList(self, count: int, byte_size: int, /) -> list[int]: ... |
| 27 | + def ConsumeIntListInRange(self, count: int, min: int, max: int, /) -> list[int]: ... |
| 28 | + def ConsumeFloat(self) -> float: ... |
| 29 | + def ConsumeRegularFloat(self) -> float: ... |
| 30 | + def ConsumeProbability(self) -> float: ... |
| 31 | + def ConsumeFloatInRange(self, min: float, max: float, /) -> float: ... |
| 32 | + def ConsumeFloatList(self, count: int, /) -> list[float]: ... |
| 33 | + def ConsumeRegularFloatList(self, count: int, /) -> list[float]: ... |
| 34 | + def ConsumeProbabilityList(self, count: int, /) -> list[float]: ... |
| 35 | + def ConsumeFloatListInRange(self, count: int, min: float, max: float, /) -> list[float]: ... |
| 36 | + def PickValueInList(self, values: list[_T], /) -> _T: ... |
| 37 | + def ConsumeBool(self) -> bool: ... |
| 38 | + def remaining_bytes(self) -> int: ... # undocumented |
| 39 | + def buffer(self) -> bytes: ... # undocumented |
0 commit comments