MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / writeTestZip

Method writeTestZip

java/test/org/openqa/selenium/io/ZipTest.java:107–114  ·  view source on GitHub ↗
(File file, int files, long lastModifiedStep)

Source from the content-addressed store, hash-verified

105 }
106
107 private void writeTestZip(File file, int files, long lastModifiedStep) throws IOException {
108 try (ZipOutputStream out = new ZipOutputStream(new FileOutputStream(file))) {
109 for (int i = 0; i < files; i++) {
110 writeTestZipEntry(out, i * lastModifiedStep);
111 }
112 }
113 file.deleteOnExit();
114 }
115
116 private void writeTestZipEntry(ZipOutputStream out, long lastModified) throws IOException {
117 File testFile = File.createTempFile("testZip", "file");

Callers 1

testCanUnzipMethod · 0.95

Calls 1

writeTestZipEntryMethod · 0.95

Tested by

no test coverage detected