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/script
Daniel Martí d60957d514 add more reflect test cases and simplify logic
A recent PR added a bigger regression test for go-spew,
and fixed an issue where we would obfuscate local named types
even if they were embedded into local structs used for reflection.
This would effectively mean we were obfuscating one field name,
the one derived from the embedding, which we didn't want to.

The fix did this by searching for embedded objects with extra code.
However, as far as I can tell, that isn't necessary;
we can do the right thing by recording all local type names
just like we already do for all field names.

This results in less complicated code, and avoids needing special logic
to handle embedding struct types, so I reckon it's a win.

Add even more tests to convince myself that we're still obfuscating
local types and field names which aren't used for reflection.
2 years ago
..
asm.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
atomic.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
basic.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
cache.txtar support computing missing pkgCache entries 2 years ago
cgo.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
crossbuild.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
debugdir.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
embed.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
goenv.txtar drop support for Go 1.19 2 years ago
gogarble.txtar avoid go:linkname warnings when building on tip 2 years ago
goversion.txtar suggest a command when asking the user to rebuild garble 2 years ago
help.txtar adapt to tip's error message change from "GOROOT" to "std" 2 years ago
implement.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
imports.txtar use go:build in script/imports.txtar 2 years ago
init.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
ldflags.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
linker.txtar internal/linker: place files under GARBLE_CACHE 2 years ago
linkname.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
list_error.txtar simplify our handling of "go list" errors 2 years ago
literals.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
modinfo.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
plugin.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
position.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
reflect.txtar add more reflect test cases and simplify logic 2 years ago
reverse.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
run.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
seed-cache.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
seed.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
syntax.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
test.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
tiny.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago
typeparams.txtar set testscript's RequireExplicitExec and RequireUniqueNames 2 years ago