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.
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 | |
---|---|---|
.. | ||
bench | 5 years ago | |
mod | 5 years ago | |
scripts | 5 years ago |