MCPcopy Create free account
hub / github.com/src-d/hercules / testPreserveRoot

Method testPreserveRoot

internal/test_data/1.java:198–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196 }
197
198 public void testPreserveRoot() throws Exception {
199 File dest = File.createTempFile("temp", null);
200 File parent = new File(getClass().getResource("TestFile.txt").getPath()).getParentFile();
201 ZipUtil.pack(parent, dest, true);
202 ZipUtil.explode(dest);
203 assertTrue((new File(dest, parent.getName())).exists());
204 }
205
206 private void unexplodeWithException(File file, String message) {
207 boolean ok = false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected