use of com.google.devtools.build.lib.actions.FilesetTraversalParams in project bazel by bazelbuild.
the class FilesetEntryFunctionTest method testFileTraversalForNonExistentFile.
@Test
public void testFileTraversalForNonExistentFile() throws Exception {
Artifact path = getSourceArtifact("foo/non-existent");
FilesetTraversalParams params = FilesetTraversalParamsFactory.fileTraversal(/*ownerLabel=*/
label("//foo"), /*fileToTraverse=*/
path, /*destPath=*/
new PathFragment("output-name"), /*symlinkBehaviorMode=*/
SymlinkBehavior.COPY, /*pkgBoundaryMode=*/
DONT_CROSS);
// expect empty results
assertSymlinksInOrder(params);
}
Aggregations