kr/godep — pull request #54 by vito (2014-02-06 18:20:31+00:00)
Title: include XTestImports when godep saving

This changes 'godep save' to include XTestImports as well as TestImports. For our tests we always have them in a separate package named '(packagename)_test', which keeps them living beside the code but has them namespaced away so we can't dig into the unexported bits. So without this change godep does not grab our test dependencies.

I'm not sure if there are any cases where Godep shouldn't bring in XTestImports. In the Go documentation it says "_test.go files outside package", which I think exactly describes our use case and nothing else?