Test error conditions in Analyzer.DeriveManifestAndLock(...):
* Manifest file does not exist
* Manifest file cannot be read
* Manifest file is invalid
Add test for Analyzer.Info() to make sure that changes to name or
version do not go unnoticed.
This addresses issue #41.
Signed-off-by: Marcelo E. Magallon <marcelo.magallon@gmail.com>
In this commit, the testing framework used in dep is moved to the
test package, since it's used either in dep and main.
All the code that is not part of a command has been moved to the
dep subpackage, as well as all those functions that were shared between
dep and main, since dep cannot depend on main.
Because of the movement to another package, many structs, methods and
functions have become public.