(self)
| 4463 | self.btest_exit('fetch/test_fetch_response_headers.cpp', cflags=['-sFETCH_DEBUG', '-sFETCH', '-pthread', '-sPROXY_TO_PTHREAD'] + args) |
| 4464 | |
| 4465 | def make_largefile(self): |
| 4466 | s = '12345678' |
| 4467 | for _ in range(14): |
| 4468 | s = s[::-1] + s # length of str will be 2^17=128KB |
| 4469 | with open('largefile.txt', 'w', encoding='utf-8') as f: |
| 4470 | for _ in range(1024): |
| 4471 | f.write(s) |
| 4472 | |
| 4473 | # Test emscripten_fetch() usage to stream a fetch in to memory without storing the full file in memory |
| 4474 | # Streaming only works the fetch backend. |
no test coverage detected