Граф коммитов

20 Коммитов

Автор SHA1 Сообщение Дата
Ibrahim AshShohail 13aa6fcff1
dep: add prune options to manifests
Signed-off-by: Ibrahim AshShohail <ibra.sho@gmail.com>
2017-11-17 10:25:07 +03:00
Jordan Krage 478afad8fe add new ProjectAnalyzerInfo type to return from ProjectAnalyzer.Info 2017-06-14 18:31:47 -05:00
Dave Cheney 1d53807754 test: move test to internal/test
Fixes #521
2017-05-11 08:57:58 +10:00
Chris Hines 203f665f53 Add Windows specific function for making a file unreadable during tests. 2017-05-02 02:34:40 -04:00
Marcelo E. Magallon dc4d317609 Improve coverage for DeriveManifestAndLock
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>
2017-04-28 06:24:34 -06:00
sam boyer 00a5b76e36 Whoops, need to export Analyzer now 2017-04-15 01:23:16 -04:00
Carolyn Van Slyck 0f9b94178b Use filepath.Join and filename constants instead of hardcoding test file paths 2017-04-04 23:31:17 -05:00
Carolyn Van Slyck 12e713b546 Update test files from JSON to TOML 2017-04-04 23:31:16 -05:00
Carolyn Van Slyck 6366f9ed68 Write manifest and lock in TOML 2017-04-04 21:10:43 -05:00
tro3 770169f812 Remove TestAnalyzerInfo() per feedback 2017-02-12 23:52:17 -05:00
tro3 0c16a76633 Moving to want/got pattern and adding unit test coverage 2017-02-12 23:52:17 -05:00
tro3 fceb52f636 Increasing coverage for lock and analyzer 2017-02-12 23:52:17 -05:00
tro3 38bce0cc56 Adding -update test flag for golden files 2017-02-12 23:52:17 -05:00
tro3 00de8c9707 Removing AreJSONEqual function 2017-02-12 23:52:17 -05:00
tro3 026ac7fd1c Converting analyzer_test.go to golden-file pattern 2017-02-12 23:52:17 -05:00
Miguel Molina 0acfd38c22 move command code into cmd subpackage
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.
2017-01-28 01:45:37 -05:00
Andrew Gerrand f91353d8ed rename 'hoard' to 'dep' (this time for sure) 2017-01-18 16:17:23 -08:00
Andrew Gerrand ee81dced50 rename 'hoard' to 'nest' 2017-01-17 17:06:45 -08:00
sam boyer 302ad3eaf7 Rename 'dep' to 'hoard', where appropriate 2017-01-12 17:32:28 -08:00
Jess Frazelle 3c40822336 add tests for DeriveManifestAndLock
Signed-off-by: Jess Frazelle <acidburn@google.com>
2016-12-22 12:44:47 -05:00