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

41 Коммитов

Автор SHA1 Сообщение Дата
sam boyer 877b79325c prune: Remove spurious types, fix tests
All old types are now gone, tests are fixed, and test coverage should be
adequate for emergency purposes.
2018-01-24 16:04:02 -05:00
Ibrahim AshShohail fb9ac8c17a
resolve nits
Signed-off-by: Ibrahim AshShohail <ibra.sho@gmail.com>
2017-12-07 23:49:59 +03:00
Ibrahim AshShohail 148dfe560d
fix missing populated prune options
Signed-off-by: Ibrahim AshShohail <ibra.sho@gmail.com>
2017-12-05 18:09:07 +03:00
Jordan Krage d61fa38258 testing: de-globalize discard loggers 2017-09-14 14:57:02 -05:00
Emrecan BATI 4758d86404 Add verbose logging option to WriteDepTree (#968) 2017-08-12 20:52:47 -05:00
sam boyer 6e855dfae4 SafeWriter should not write out an unchanged lock 2017-06-17 00:22:46 -04:00
Jordan Krage fd296202e6 SafeWriter.Write noExamples->examples 2017-06-02 08:24:21 -05:00
sam boyer 05c40eba7f Merge meta-PR to stabilize Gopkg metadata files 2017-05-26 23:52:34 -04:00
sam boyer f6c2b15106 Incorporate lock split-up into integration branch
Conflicts:
	cmd/dep/testdata/harness_tests/init/case1/final/Gopkg.lock
	cmd/dep/testdata/harness_tests/init/case2/final/Gopkg.lock
	cmd/dep/testdata/harness_tests/remove/force/case1/final/Gopkg.lock
	cmd/dep/testdata/harness_tests/remove/specific/case1/final/Gopkg.lock
	cmd/dep/testdata/harness_tests/remove/specific/case2/final/Gopkg.lock
	cmd/dep/testdata/harness_tests/remove/unused/case1/final/Gopkg.lock
	cmd/dep/testdata/harness_tests/status/case1/dot/final/Gopkg.lock
	cmd/dep/testdata/harness_tests/status/case1/json/final/Gopkg.lock
	cmd/dep/testdata/harness_tests/status/case1/table/final/Gopkg.lock
	txn_writer_test.go
2017-05-22 14:07:20 -04:00
sam boyer 75ac569533 Incorporate solver name and version in Gopkg.lock 2017-05-22 13:41:13 -04:00
Dave Cheney 3ab6113ae4 dep: unexport SafeWriter.LockDiff 2017-05-17 12:29:32 +10:00
Dave Cheney edc1b5bd2f dep: remove SafeWriter.HasVendor method
SafeWriter.HasVendor was only used in a test context. Unexport
SafeWriter.WriteVendor and use it directly.
2017-05-17 10:44:28 +10:00
sam boyer 8be9bb629b Split input components out in Gopkg.lock 2017-05-15 23:05:45 -04:00
Dave Cheney 1d53807754 test: move test to internal/test
Fixes #521
2017-05-11 08:57:58 +10:00
Dominic Green 5565720ee9 removing Payload from SafeWriter 2017-05-01 12:34:38 +01:00
Dominic Green b780ad16cd removing Prepare method in exchange for NewSafeWriter 2017-04-30 22:35:43 +01:00
Ewan Valentine e0ec5ff892 FIXED missing param in tests 2017-04-28 16:20:15 +01:00
Sunny 6be232c69f Add git preserve with force vendor test
- Adds TestSafeWriter_VendorDotGitPreservedWithForceVendor test.
- Replaces os.Rename with renameWithFallback
2017-04-27 00:49:09 +05:30
Sunny 8630423b3b Add vendor/.git exists check in SafeWriter.Write 2017-04-26 19:42:49 +05:30
Carolyn Van Slyck 34bbce0c79 Use LockDiff from gps
Simplified the LockDiff test in dep to only focus on formatting the diff,
now that the diff implementation lives in gps and deploy only implements formatting
2017-04-17 11:16:09 -05:00
Carolyn Van Slyck 23facf8bbf Move lock diff to TOML
* Expanded diff test case to verify that multiple projects
  are formatted properly
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
Carolyn Van Slyck a5ab339ef4 Further simplify ensure payload logic
* If manifest is provided, write it.
* If newLock is provided, write it.
* Explicit vendor behavior: VendorOnChanged, VendorAlways, VendorNever.
* Write vendor/ using newLock.
2017-03-19 11:47:09 -05:00
Carolyn Van Slyck e565a9f91e Simplify ensure payload logic
* Always write the manifest when provided.
* Write the lock only when modified or when writing vendor/.
* Clarify what should be passed for the two locks args:
  old lock and new lock. Updated `dep init` to match this expectation.
* Add test case for writing a new lock
2017-03-15 11:23:57 -05:00
Carolyn Van Slyck 2287888873 Write vendor, regardless of lock, if force is true
Fix misunderstanding about when lock and newlock should be set in the
SafeWriter tests.
2017-03-13 09:45:23 -05:00
Carolyn Van Slyck 7e27e80b7b Display all fields for a removed project in the lock diff 2017-03-09 13:28:47 -06:00
Carolyn Van Slyck 02635cc8b0 Display diff of lock file during dry-run 2017-03-09 13:28:46 -06:00
Carolyn Van Slyck 6ac8a778b2 Split out SafeWriter bad input tests into 1 per scenario 2017-03-09 13:28:46 -06:00
Carolyn Van Slyck e43a3b839e Respect dry-run flag during dep ensure 2017-03-09 13:28:42 -06:00
tro3 0c16a76633 Moving to want/got pattern and adding unit test coverage 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 60d3a173ae Cleaning up test file functions 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
tro3 45bfd674ea Converting txn_writer_test.go to golden-file pattern 2017-02-12 23:52:17 -05:00
Miguel Molina 8e957c385d rename testgo to Helper
TestgoData has been renamed to Helper and Testgo to NewHelper.
2017-01-31 14:08:27 -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
Jess Frazelle 70b94eae49 add license to all files
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-01-18 09:28:20 -05:00
Jess Frazelle 447fe121f8 release the source manager in txtWriterTest for windows
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-01-17 11:37:50 -08:00
sam boyer ea0f0f03d7 Add tests for txn writer
Still frustratingly incomplete, as we're not actually testing the
rollback cases which the transaction writer is really supposed to
facilitate.
2017-01-04 17:19:32 -08:00