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í 3fbefbbacf fix TODOs about code which is now unused
The _gomod_.go file inserted by the Go toolchain no longer shows up;
it's likely that either the -trimpath or -buildvcs=false flags are
preventing that extra bit of work from happening entirely.
The modinfo.txt test ensures that we're not breaking,
and the inner lines of code weren't hit as part of `go test`.

It also appears that we don't need to avoid obfuscating functions
defined with an `//export` directive. This is likely because cgo runs as
a pre-process step compared to the compiler, so us removing the
directive later does not make a difference.
We might need to revisit this in the future if we implement obfuscating
Go code instead of builds, e.g. `garble export`.

Just in case, I've expanded the cgo.txt test to also include one more
kind of cgo integration: an "import C" block including a C header file.

Either of these changes are slightly risky, as our tests don't cover all
edge cases. We've just done a release, so now is the time to try them.
4 years ago
..
asm.txt all: drop support for Go 1.17 4 years ago
basic.txt add missing context to two unmarshal errors 4 years ago
cgo.txt fix TODOs about code which is now unused 4 years ago
crossbuild.txt all: drop support for Go 1.17 4 years ago
debugdir.txt all: drop support for Go 1.17 4 years ago
embed.txt all: drop support for Go 1.17 4 years ago
goenv.txt properly quote the path to garble in -toolexec 4 years ago
gogarble.txt all: drop support for Go 1.17 4 years ago
goversion.txt all: drop support for Go 1.17 4 years ago
help.txt fix support with the latest Go master version 4 years ago
implement.txt all: drop support for Go 1.17 4 years ago
imports.txt support import paths ending with ".go" 4 years ago
init.txt all: drop support for Go 1.17 4 years ago
ldflags.txt all: drop support for Go 1.17 4 years ago
linkname.txt all: drop support for Go 1.17 4 years ago
literals.txt Disable seed obfuscator (#535) 4 years ago
modinfo.txt all: drop support for Go 1.17 4 years ago
plugin.txt all: drop support for Go 1.17 4 years ago
position.txt all: drop support for Go 1.17 4 years ago
reflect.txt fix support with the latest Go master version 4 years ago
reverse.txt all: drop support for Go 1.17 4 years ago
seed-cache.txt all: drop support for Go 1.17 4 years ago
seed.txt all: drop support for Go 1.17 4 years ago
syntax.txt all: drop support for Go 1.17 4 years ago
test.txt skip unnecessary "refusing to list" test errors 4 years ago
tiny.txt all: drop support for Go 1.17 4 years ago
typeparams.txt fix hashing of generic field names 4 years ago