Coverage for /pythoncovmergedfiles/medio/medio/src/python-multipart/fuzz/helpers.py: 83%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

6 statements  

1import atheris 

2 

3 

4class EnhancedDataProvider(atheris.FuzzedDataProvider): 

5 def ConsumeRandomBytes(self) -> bytes: 

6 return self.ConsumeBytes(self.ConsumeIntInRange(0, self.remaining_bytes())) 

7 

8 def ConsumeRandomString(self) -> str: 

9 return self.ConsumeUnicodeNoSurrogates(self.ConsumeIntInRange(0, self.remaining_bytes()))