How to Know If a Golang App is Executed with go test
If you came across this story, it is obvious that you want to be able to know (programmatically) if your code is being executed with go
or go test
and may be you are wondering if your code should know the difference.