You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observe that, once compiled, test flags are added into the executable:
> go build -o main
> ./main -help
hi
Usage of ./main:
-test.bench regexp
run only benchmarks matching regexp
-test.benchmem
print memory allocations for benchmarks
......
......
What did you expect to see?
The function a uses testing package, however, since the function is dead code to the entire program, the testing package features are never utilised and test flags should never have been compiled into the executable.
The text was updated successfully, but these errors were encountered:
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.8.3
What operating system and processor architecture are you using (
go env
)?Linux on x86-64
Code sample
Observe that, once compiled, test flags are added into the executable:
What did you expect to see?
The function
a
usestesting
package, however, since the function is dead code to the entire program, thetesting
package features are never utilised and test flags should never have been compiled into the executable.The text was updated successfully, but these errors were encountered: