IgnoreFileSet { public boolean isCoveredByIgnoreFile(@Nullable VirtualFile tested) { return tested != null && !relativeToIgnoreDir(tested).isEmpty(); } private  IgnoreFileSet(@NotNull VirtualFile ignoreFile, @NotNull List<IgnoreFilePattern> ignorePatterns); boolean isCoveredByIgnoreFile(@Nullable VirtualFile tested); boolean isIgnored(@Nullable VirtualFile tested);  }
@Test public void testIsCovered_Null() { assertThat(rootIgnoreFileSet.isCoveredByIgnoreFile(null), is(false)); }
@Test public void testIsCovered_Yes_ExplitNotIgnored() { assertThat(rootIgnoreFileSet.isCoveredByIgnoreFile(tree.get("/a/b/c.txt")), is(true)); }
@Test public void testIsCovered_Yes_Ignored() { assertThat(rootIgnoreFileSet.isCoveredByIgnoreFile(tree.get("/a/a/badef.jpeg")), is(true)); }
@Test public void testIsCovered_Yes_NotListed() { assertThat(rootIgnoreFileSet.isCoveredByIgnoreFile(tree.get("/x/a/b/c.txt")), is(true)); }
@Test public void testIsCovered_OtherPath_No() { assertThat(xIgnoreFileSet.isCoveredByIgnoreFile(tree.get("/a/b/c.txt")), is(false)); }