summaryrefslogtreecommitdiff
path: root/bp2build/filegroup_conversion_test.go
diff options
context:
space:
mode:
author Chris Parsons <cparsons@google.com> 2023-09-27 22:39:45 +0000
committer Chris Parsons <cparsons@google.com> 2023-09-28 23:07:00 +0000
commit2ef472be7a972b325c053240d763d4d6be02db2d (patch)
treef0e3f4622082f67d79ec0aeee34171b78d491a1a /bp2build/filegroup_conversion_test.go
parentdec9ce6693cd21c4fb765206c2bd1d72c6b736f3 (diff)
Treat src=name filegroups as handcrafted targets
This is groundwork for allowlist v2, as such targets are still effectively referencable via their file syntax; thus, rdep targets of these filegroups should still be treated as convertible. Fixes: 302025822 Test: Unit test update Change-Id: I93445ff75e7c0570530725d086e47c1532833c06
Diffstat (limited to 'bp2build/filegroup_conversion_test.go')
-rw-r--r--bp2build/filegroup_conversion_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/bp2build/filegroup_conversion_test.go b/bp2build/filegroup_conversion_test.go
index cb2e2076a..9c49dac6f 100644
--- a/bp2build/filegroup_conversion_test.go
+++ b/bp2build/filegroup_conversion_test.go
@@ -40,7 +40,9 @@ filegroup {
srcs: ["foo"],
}
`,
- ExpectedBazelTargets: []string{}})
+ ExpectedBazelTargets: []string{},
+ ExpectedHandcraftedModules: []string{"foo"}},
+ )
}
func TestFilegroupSameNameAsFile_MultipleFiles(t *testing.T) {