use of com.google.idea.blaze.base.lang.buildfile.psi.BuildFile in project intellij by bazelbuild.
the class GlobValidationTest method testEmptyExcludeList.
@Test
public void testEmptyExcludeList() {
BuildFile file = createBuildFile(new WorkspacePath("java/com/google/BUILD"), "glob(['**/*.java'], exclude = [])");
assertNoErrors(file);
}
use of com.google.idea.blaze.base.lang.buildfile.psi.BuildFile in project intellij by bazelbuild.
the class GlobValidationTest method testNamedIncludeArgument.
@Test
public void testNamedIncludeArgument() {
BuildFile file = createBuildFile(new WorkspacePath("java/com/google/BUILD"), "glob(include = ['**/*.java'])");
assertNoErrors(file);
}
use of com.google.idea.blaze.base.lang.buildfile.psi.BuildFile in project intellij by bazelbuild.
the class GlobValidationTest method testSingletonIncludeArgumentError.
@Test
public void testSingletonIncludeArgumentError() {
BuildFile file = createBuildFile(new WorkspacePath("java/com/google/BUILD"), "glob(include = '**/*.java')");
assertHasError(file, "Glob parameter 'include' must be a list of strings");
}
use of com.google.idea.blaze.base.lang.buildfile.psi.BuildFile in project intellij by bazelbuild.
the class GlobValidationTest method testNestedGlobs.
@Test
public void testNestedGlobs() {
// blaze accepts nested globs
BuildFile file = createBuildFile(new WorkspacePath("java/com/google/BUILD"), "glob(glob(['*.java']))");
assertNoErrors(file);
}
use of com.google.idea.blaze.base.lang.buildfile.psi.BuildFile in project intellij by bazelbuild.
the class GlobValidationTest method testLocalVariableReference.
@Test
public void testLocalVariableReference() {
BuildFile file = createBuildFile(new WorkspacePath("java/com/google/BUILD"), "foo = ['*.java']", "glob(include = foo)");
assertNoErrors(file);
}
Aggregations