You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
garble/testdata/scripts
Daniel Martí cd86069e56 testdata: make syntax.txt pass when offline
The test intended to use an extra module to be obfuscated, rsc.io/quote,
which we were bundling in the local proxy as well. Unfortunately, the
use of GOPRIVATE also meant that we did not actually fetch the module
from the proxy, and we would instead do a full roundtrip to the internet
to "git clone" the actual upstream repository.

To prevent that roundtrip, instead use a locally replaced module. This
fits the syntax.txt test too, since it's one more edge case that we want
to make sure works well with garble. Since rsc.io/quote is used in
another test, simply make up our own tiny module.

Reduces a 'go test -run Syntax/syntax' run with warm cache from ~5s to
~0.5s, thanks to removing the multiple roundtrips. A warm 'go test' run
still sits at ~6s, since we still need that much CPU time in total.

While at it, fix a staticcheck warning and fix inconsistent indentation
in a couple of tests.
5 years ago
..
asm.txt Strip all filename and position info when -tiny is passed (#128) 5 years ago
basic.txt initial support for build caching (#142) 5 years ago
cgo.txt Strip all filename and position info when -tiny is passed (#128) 5 years ago
debugdir.txt testdata: make syntax.txt pass when offline 5 years ago
goprivate.txt add blacklist for runtime std packages 5 years ago
goversion.txt add test for Go version checking (#140) 5 years ago
help.txt all: update the docs a bit 5 years ago
implement.txt testdata: set GOPRIVATE in all but two tests (#104) 5 years ago
imports.txt initial support for build caching (#142) 5 years ago
ldflags.txt Rewrite renaming logic for private names and reduce length of public names (#135) 5 years ago
literals.txt testdata: use the debugdir flag less often 5 years ago
modinfo.txt testdata: set GOPRIVATE in all but two tests (#104) 5 years ago
plugin.txt Disable plugin test (#120) 5 years ago
seed.txt initial support for build caching (#142) 5 years ago
syntax.txt testdata: make syntax.txt pass when offline 5 years ago
test.txt testdata: set GOPRIVATE in all but two tests (#104) 5 years ago
tiny.txt testdata: use the debugdir flag less often 5 years ago