summaryrefslogtreecommitdiff
path: root/bp2build/conversion_test.go
diff options
context:
space:
mode:
author Rupert Shuttleworth <ruperts@google.com> 2021-05-18 07:47:15 -0400
committer Rupert Shuttleworth <ruperts@google.com> 2021-05-18 09:01:36 -0400
commit413a7a97fb3fb511c62416f672bebf0f7b0a3741 (patch)
tree0f0f615c617d070aab9996c95acb4b3bbd5b7456 /bp2build/conversion_test.go
parentf1d8819d7df17ab5d168f7d9d638c98b32da5765 (diff)
Have bp2build generate BUILD.bazel instead of generating BUILD.
Test: TH Change-Id: I465d29da96dd77c432890a38a56203e291b8ceed
Diffstat (limited to 'bp2build/conversion_test.go')
-rw-r--r--bp2build/conversion_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/bp2build/conversion_test.go b/bp2build/conversion_test.go
index a08c03d05..0931ff7fc 100644
--- a/bp2build/conversion_test.go
+++ b/bp2build/conversion_test.go
@@ -29,7 +29,7 @@ func TestCreateBazelFiles_QueryView_AddsTopLevelFiles(t *testing.T) {
expectedFilePaths := []bazelFilepath{
{
dir: "",
- basename: "BUILD",
+ basename: "BUILD.bazel",
},
{
dir: "",
@@ -37,7 +37,7 @@ func TestCreateBazelFiles_QueryView_AddsTopLevelFiles(t *testing.T) {
},
{
dir: bazelRulesSubDir,
- basename: "BUILD",
+ basename: "BUILD.bazel",
},
{
dir: bazelRulesSubDir,
@@ -69,7 +69,7 @@ func TestCreateBazelFiles_QueryView_AddsTopLevelFiles(t *testing.T) {
if actualFile.Dir != expectedFile.dir || actualFile.Basename != expectedFile.basename {
t.Errorf("Did not find expected file %s/%s", actualFile.Dir, actualFile.Basename)
- } else if actualFile.Basename == "BUILD" || actualFile.Basename == "WORKSPACE" {
+ } else if actualFile.Basename == "BUILD.bazel" || actualFile.Basename == "WORKSPACE" {
if actualFile.Contents != "" {
t.Errorf("Expected %s to have no content.", actualFile)
}