Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
golang / usr / local / go / src / cmd / go / testdata / script / test_overlay.txt
Size: Mime:
[short] skip

cd $WORK/gopath/src/foo
go test -list=. -overlay=overlay.json .
stdout 'TestBar'

-- go.mod --
module test.pkg
-- foo/foo_test.go --
package foo

import "testing"

func TestFoo(t *testing.T) { }
-- tmp/bar_test.go --
package foo

import "testing"

func TestBar(t *testing.T) {
	t.Fatal("dummy failure")
}
-- foo/overlay.json --
{"Replace": {"foo_test.go": "../tmp/bar_test.go"}}