mirror of
https://github.com/golang/go
synced 2024-11-26 17:07:09 -07:00
embed/internal/embedtest: use parenthesized vars for one test
The gofrontend code mishandled this case, so add it to the test. Change-Id: I183b8fab57552320b04c4826c590b7c6d36b6548 Reviewed-on: https://go-review.googlesource.com/c/go/+/358836 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
parent
e5c512520b
commit
13eccaa990
@ -89,11 +89,13 @@ func TestDir(t *testing.T) {
|
||||
testDir(t, all, "testdata/i/j/k", "k8s.txt")
|
||||
}
|
||||
|
||||
//go:embed testdata
|
||||
var testHiddenDir embed.FS
|
||||
var (
|
||||
//go:embed testdata
|
||||
testHiddenDir embed.FS
|
||||
|
||||
//go:embed testdata/*
|
||||
var testHiddenStar embed.FS
|
||||
//go:embed testdata/*
|
||||
testHiddenStar embed.FS
|
||||
)
|
||||
|
||||
func TestHidden(t *testing.T) {
|
||||
dir := testHiddenDir
|
||||
|
Loading…
Reference in New Issue
Block a user