Skip to content

Commit

Permalink
Replace warnings with empty files
Browse files Browse the repository at this point in the history
Right now lots of our tests assert that there's a warning about a
missing file.

Instead, just provide a valid dummy file.
  • Loading branch information
illicitonion committed May 7, 2024
1 parent dac29ee commit 3e921bc
Show file tree
Hide file tree
Showing 42 changed files with 21 additions and 21 deletions.
1 change: 0 additions & 1 deletion java/gazelle/testdata/annotations/expectedStderr.txt

This file was deleted.

1 change: 1 addition & 0 deletions java/gazelle/testdata/annotations/maven_install.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}
1 change: 0 additions & 1 deletion java/gazelle/testdata/bin/expectedStderr.txt

This file was deleted.

1 change: 1 addition & 0 deletions java/gazelle/testdata/bin/maven_install.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}
1 change: 0 additions & 1 deletion java/gazelle/testdata/bin_in_test_tree/expectedStderr.txt

This file was deleted.

1 change: 1 addition & 0 deletions java/gazelle/testdata/bin_in_test_tree/maven_install.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}
1 change: 0 additions & 1 deletion java/gazelle/testdata/directive_exclude/expectedStderr.txt

This file was deleted.

1 change: 1 addition & 0 deletions java/gazelle/testdata/directive_exclude/maven_install.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}
1 change: 0 additions & 1 deletion java/gazelle/testdata/grpc/expectedStderr.txt

This file was deleted.

1 change: 1 addition & 0 deletions java/gazelle/testdata/grpc/maven_install.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}
1 change: 0 additions & 1 deletion java/gazelle/testdata/inner_classes/expectedStderr.txt

This file was deleted.

1 change: 1 addition & 0 deletions java/gazelle/testdata/inner_classes/maven_install.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}
1 change: 0 additions & 1 deletion java/gazelle/testdata/interface_exports/expectedStderr.txt

This file was deleted.

1 change: 1 addition & 0 deletions java/gazelle/testdata/interface_exports/maven_install.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}
1 change: 0 additions & 1 deletion java/gazelle/testdata/lib/expectedStderr.txt

This file was deleted.

1 change: 1 addition & 0 deletions java/gazelle/testdata/lib/maven_install.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
{"level":"warn","_c":"maven-resolver","error":"open %WORKSPACEPATH%/maven_install.json: no such file or directory","message":"not loading maven dependencies"}
{"level":"fatal","file.Pkg":"src/main/java/com/example/hello","name":"hello","dep":"@invalid:label","error":"label parse error: repository has invalid characters: \"@invalid:label\"","message":"label parse error"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
{"level":"warn","_c":"maven-resolver","error":"open %WORKSPACEPATH%/maven_install.json: no such file or directory","message":"not loading maven dependencies"}
{"level":"warn","package":"com.idonotexist","from rule":"//src/main/java/com/example/hello","message":"Unable to find package for import in any dependency"}
{"level":"fatal","message":"the java extension encontered errors that will create invalid build files"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
{"level":"warn","_c":"maven-resolver","error":"open %WORKSPACEPATH%/maven_install.json: no such file or directory","message":"not loading maven dependencies"}
{"level":"fatal","step":"GenerateRules","rel":"src/main/com/example","error":"InvalidArgument: Expected exactly one java package, but saw 2: com.example, example","package":"src/main/com/example","message":"Failed to parse package"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}
1 change: 0 additions & 1 deletion java/gazelle/testdata/packages/expectedStderr.txt

This file was deleted.

1 change: 1 addition & 0 deletions java/gazelle/testdata/packages/maven_install.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}
1 change: 0 additions & 1 deletion java/gazelle/testdata/proto/expectedStderr.txt

This file was deleted.

1 change: 1 addition & 0 deletions java/gazelle/testdata/proto/maven_install.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}
1 change: 0 additions & 1 deletion java/gazelle/testdata/runfiles/expectedStderr.txt

This file was deleted.

1 change: 1 addition & 0 deletions java/gazelle/testdata/runfiles/maven_install.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}
1 change: 0 additions & 1 deletion java/gazelle/testdata/stdlib/expectedStderr.txt

This file was deleted.

1 change: 1 addition & 0 deletions java/gazelle/testdata/stdlib/maven_install.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2"}

0 comments on commit 3e921bc

Please sign in to comment.