Files
codeql/java/ql/integration-tests/java/maven-sample-large-xml-files/test.py
Dilan Bhalla 14ce258807 2.19.0 upgrade
2024-09-18 14:28:42 -07:00

7 lines
306 B
Python

def test(codeql, java):
# Test that a build with 60 ~1MB XML docs extracts does not extract them, but we fall back to by-name mode instead:
for i in range(60):
with open(f"generated-{i}.xml", "w") as f:
f.write("<xml>" + ("a" * 1000000) + "</xml>")
codeql.database.create()