Fix multi-word test case names to use lowerCamelCase.
This is to follow the style guide recommendation in:
https://google.github.io/styleguide/javaguide.html#s5.2.3-method-names
and to fix lint warnings that have already gotten in the way of two
of my recent CLs.
This change was automatically generated by collecting the list of all
affected files in a "list" file and doing:
for f in $(cat /tmp/list); do
sed -itmp -e '/void test.*_[A-Z]/s/\(_[A-Z]\)/\L\1/g' "$f"
done
... and then skimming through the diff to undo a few "fixes" that were
incorrect because we have test names encoding literals like "BUILD".
PiperOrigin-RevId: 329363594
diff --git a/src/test/java/com/google/devtools/build/lib/packages/GlobCacheTest.java b/src/test/java/com/google/devtools/build/lib/packages/GlobCacheTest.java
index e2263af..944ae45 100644
--- a/src/test/java/com/google/devtools/build/lib/packages/GlobCacheTest.java
+++ b/src/test/java/com/google/devtools/build/lib/packages/GlobCacheTest.java
@@ -205,13 +205,13 @@
}
@Test
- public void testSingleFileExclude_Star() throws Exception {
+ public void testSingleFileExclude_star() throws Exception {
assertThat(cache.globUnsorted(list("*"), list("first.txt"), false, true))
.containsExactly("BUILD", "bar", "first.js", "foo", "second.js", "second.txt");
}
@Test
- public void testSingleFileExclude_StarStar() throws Exception {
+ public void testSingleFileExclude_starStar() throws Exception {
assertThat(cache.globUnsorted(list("**"), list("first.txt"), false, true))
.containsExactly(
"BUILD",
@@ -227,22 +227,22 @@
}
@Test
- public void testExcludeAll_Star() throws Exception {
+ public void testExcludeAll_star() throws Exception {
assertThat(cache.globUnsorted(list("*"), list("*"), false, true)).isEmpty();
}
@Test
- public void testExcludeAll_Star_NoMatchesAnyway() throws Exception {
+ public void testExcludeAll_star_noMatchesAnyway() throws Exception {
assertThat(cache.globUnsorted(list("nope"), list("*"), false, true)).isEmpty();
}
@Test
- public void testExcludeAll_StarStar() throws Exception {
+ public void testExcludeAll_starStar() throws Exception {
assertThat(cache.globUnsorted(list("**"), list("**"), false, true)).isEmpty();
}
@Test
- public void testExcludeAll_Manual() throws Exception {
+ public void testExcludeAll_manual() throws Exception {
assertThat(cache.globUnsorted(list("**"), list("*", "*/*", "*/*/*"), false, true)).isEmpty();
}