Skip to content

Commit

Permalink
improve GOOS=tamago test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
abarisani committed Sep 6, 2024
1 parent 2674970 commit f9b5130
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/cmd/go/internal/vcweb/vcstest/testdata_tamago_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//go:build tamago
package vcstest

import (
"os"
"syscall"
"cmd/go/testdata/vcstest"
)

func init() {
os.CopyFS("testdata/vcstest", testdata.FS)
os.Remove("testdata/vcstest/embed_tamago.go")

// tests look for path ../../../testdata/vcstest
syscall.Mkdir("./1/2/3", 0777)
syscall.Chdir("./1/2/3")
}
10 changes: 10 additions & 0 deletions src/cmd/go/testdata/vcstest/embed_tamago.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//go:build tamago

package testdata

import (
"embed"
)

//go:embed *
var FS embed.FS

0 comments on commit f9b5130

Please sign in to comment.