(total, step)
| 84 | def write_test_file(path, size): |
| 85 | """Create a test file with an arbitrary size and random text content.""" |
| 86 | def chunks(total, step): |
| 87 | assert total >= step |
| 88 | while total > step: |
| 89 | yield step |
| 90 | total -= step |
| 91 | if total: |
| 92 | yield total |
| 93 | |
| 94 | bufsize = min(size, 8192) |
| 95 | chunk = b"".join([random.choice(string.ascii_letters).encode() |
no outgoing calls
no test coverage detected
searching dependent graphs…