Using Go, how can I check that a package and its tests will build successfully, without running the tests or creating a binary that outlives the check?
Use the command:
go test -run @
This command compiles the package and tests and starts the test application, but no tests run because no function name matches the regular expression "@".