use of com.facebook.buck.io.WatchmanQuery in project buck by facebook.
the class WatchmanWatcherTest method watchmanQueryWithRepoRelativePrefix.
@Test
public void watchmanQueryWithRepoRelativePrefix() {
WatchmanQuery query = WatchmanWatcher.createQuery(ProjectWatch.of("path/to/repo", Optional.of("project")), ImmutableSet.of(), ImmutableSet.of(Watchman.Capability.DIRNAME));
assertThat(query.toList(""), hasItem(hasEntry("relative_root", "project")));
}
Aggregations