Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Aug 24, 2024
1 parent 49cd028 commit b8f2c22
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion edit/bzlmod/bzlmod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ prox10.use(dict = {"foo": "bar"})
prox11 = use_extension("extension.bzl", "ext")
prox12 = use_extension(":extension.bzl", "ext")
prox13 = use_extension("//:extension.bzl", "ext")
prox14 = use_extension("@name//:extension.bzl", "ext")
prox15 = use_extension("@repo_name//:extension.bzl", "ext")
`

func TestProxies(t *testing.T) {
Expand Down Expand Up @@ -142,12 +144,19 @@ func TestProxies(t *testing.T) {
true,
[]string{"prox10"},
},
{
proxiesModuleNameHeader + proxiesBody,
[]string{"//:extension.bzl", "@//:extension.bzl"},
"ext",
false,
[]string{"prox11", "prox12", "prox13", "prox14"},
},
{
proxiesModuleRepoNameHeader + proxiesBody,
[]string{"//:extension.bzl", "@//:extension.bzl"},
"ext",
false,
[]string{"prox11", "prox12", "prox13"},
[]string{"prox11", "prox12", "prox13", "prox15"},
},
} {
t.Run(strconv.Itoa(i), func(t *testing.T) {
Expand Down

0 comments on commit b8f2c22

Please sign in to comment.