MCPcopy
hub / github.com/google/guava / testPredicates

Method testPredicates

guava-tests/test/com/google/common/io/FilesTest.java:663–671  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

661 }
662
663 public void testPredicates() throws IOException {
664 File asciiFile = getTestFile("ascii.txt");
665 File dir = asciiFile.getParentFile();
666 assertTrue(Files.isDirectory().apply(dir));
667 assertFalse(Files.isFile().apply(dir));
668
669 assertFalse(Files.isDirectory().apply(asciiFile));
670 assertTrue(Files.isFile().apply(asciiFile));
671 }
672
673 /** Returns a root path for the file system. */
674 private static File root() {

Callers

nothing calls this directly

Calls 4

isDirectoryMethod · 0.95
isFileMethod · 0.95
applyMethod · 0.65
getTestFileMethod · 0.45

Tested by

no test coverage detected