use of com.google.idea.blaze.base.model.primitives.WorkspacePath in project intellij by bazelbuild.
the class GlobValidationTest method testPossibleListExpressionParameter.
@Test
public void testPossibleListExpressionParameter() {
BuildFile file = createBuildFile(new WorkspacePath("java/com/google/BUILD"), "def function(param1, param2):", " glob(include = param1)");
assertNoErrors(file);
}
use of com.google.idea.blaze.base.model.primitives.WorkspacePath 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.model.primitives.WorkspacePath 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.model.primitives.WorkspacePath 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.model.primitives.WorkspacePath 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);
}
Aggregations