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í 180d64236a
properly fix obfuscated imports with their package names (#245)
The TODO I left there didn't take long to surface as a bug. If the
package path ends with a word containing a hyphen, that's not a valid
identifier, so we end up with invalid Go syntax.

Add that test case, as well as one where an import was already named.

To fix the issue, we just need to use the package name we got from
'go list -json'.

Fixes #243.
4 years ago
..
asm.txt testdata: don't let tests rely on rewriting mod files 5 years ago
basic.txt obfuscate unexported names like exported ones (#227) 4 years ago
cgo.txt testdata: don't let tests rely on rewriting mod files 5 years ago
debugdir.txt reimplement import path obfuscation without goobj2 (#242) 4 years ago
goprivate.txt support typechecking all of std (#236) 4 years ago
goversion.txt testdata: simplify goversion test (#232) 4 years ago
help.txt include a "garble version" test (#221) 4 years ago
implement.txt testdata: don't let tests rely on rewriting mod files 5 years ago
imports.txt properly fix obfuscated imports with their package names (#245) 4 years ago
init.txt testdata: add test case for init funcs in many files (#208) 4 years ago
ldflags.txt testdata: don't let tests rely on rewriting mod files 5 years ago
linkname.txt fixed some bugs related to additional linkname corner cases (#210) 4 years ago
literals.txt do not try to obfuscate huge literals (#204) 4 years ago
modinfo.txt testdata: don't let tests rely on rewriting mod files 5 years ago
plugin.txt testdata: don't let tests rely on rewriting mod files 5 years ago
position.txt simplify, improve, and test line obfuscation (#239) 4 years ago
reverse.txt reverse: support unexported names and package paths (#233) 4 years ago
seed.txt testdata: don't let tests rely on rewriting mod files 5 years ago
syntax.txt avoid panic on funcs that almost look like tests (#235) 4 years ago
test.txt reimplement import path obfuscation without goobj2 (#242) 4 years ago
tiny.txt reimplement import path obfuscation without goobj2 (#242) 4 years ago