The common practice is to write tests as part of the package to test. This 
allows you to test unexported functions and types, which is not be possible 
outside of the package. Testing the package makes it very easy.  I created 
an external test package  once for large test files, where including the 
large files in the original package repository would have made the 
git-cloning the package directory extremely slow.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to