We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5272f30 commit fc8742fCopy full SHA for fc8742f
cmd/bundle/main_test.go
@@ -15,7 +15,8 @@ import (
15
"golang.org/x/tools/go/packages/packagestest"
16
)
17
18
-func TestBundle(t *testing.T) {
+func TestBundle(t *testing.T) { packagestest.TestAll(t, testBundle) }
19
+func testBundle(t *testing.T, x packagestest.Exporter) {
20
load := func(name string) string {
21
data, err := ioutil.ReadFile(name)
22
if err != nil {
@@ -24,7 +25,7 @@ func TestBundle(t *testing.T) {
24
25
return string(data)
26
}
27
- e := packagestest.Export(t, packagestest.Modules, []packagestest.Module{
28
+ e := packagestest.Export(t, x, []packagestest.Module{
29
{
30
Name: "initial",
31
Files: map[string]interface{}{
0 commit comments