MCPcopy Create free account
hub / github.com/apache/pig / testIsTempFile

Method testIsTempFile

test/org/apache/pig/test/TestPigRunner.java:645–653  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

643 }
644
645 @Test
646 public void testIsTempFile() throws Exception {
647 PigContext context = new PigContext(Util.getLocalTestMode(), new Properties());
648 context.connect();
649 for (int i=0; i<100; i++) {
650 String file = FileLocalizer.getTemporaryPath(context).toString();
651 assertTrue("not a temp file: " + file, PigStatsUtil.isTempFile(file));
652 }
653 }
654
655 @Test
656 public void testCounterName() throws Exception {

Callers

nothing calls this directly

Calls 5

getLocalTestModeMethod · 0.95
connectMethod · 0.95
getTemporaryPathMethod · 0.95
isTempFileMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected