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

30 Коммитов

Автор SHA1 Сообщение Дата
sam boyer 50326d7382 dep: Minor test and lint nits 2017-10-13 14:48:40 -04:00
sam boyer 9139a33e62 dep: Add more harness tests for wildcard ignores
This also adds `dep hash-inputs` output to both of the harness tests, so
that it's easier for developers to keep track of the expected output in
these cases.
2017-10-13 10:36:12 -04:00
Jordan Krage 3642e27deb integration tests: remove unused parameter 2017-10-03 06:57:24 -05:00
Tamir Duberstein 3a25b0b519
Add golint
/Users/tamird/src/go/src/github.com/golang/dep/context.go:86:1: exported method Ctx.SourceManager should have comment or be unexported
/Users/tamird/src/go/src/github.com/golang/dep/internal/gps/cmd.go:75:13: should omit type *int32 from declaration of var isDone; it will be inferred from the right-hand side
/Users/tamird/src/go/src/github.com/golang/dep/internal/gps/version.go:122:1: exported method Revision.ImpliedCaretString should have comment or be unexported
/Users/tamird/src/go/src/github.com/golang/dep/internal/test/test.go:27:2: exported var ExeSuffix should have comment or be unexported
/Users/tamird/src/go/src/github.com/golang/dep/internal/test/test.go:29:15: should omit type *bool from declaration of var PrintLogs; it will be inferred from the right-hand side
/Users/tamird/src/go/src/github.com/golang/dep/internal/test/test.go:30:15: should omit type *bool from declaration of var UpdateGolden; it will be inferred from the right-hand side
/Users/tamird/src/go/src/github.com/golang/dep/internal/test/test.go:194:1: comment on exported method Helper.Run should be of the form "Run ..."
/Users/tamird/src/go/src/github.com/golang/dep/internal/test/test.go:449:1: comment on exported method Helper.GetFile should be of the form "GetFile ..."
/Users/tamird/src/go/src/github.com/golang/dep/internal/test/test.go:611:1: exported method Helper.GetCommit should have comment or be unexported
2017-09-11 19:22:23 -04:00
Tamir Duberstein d9c8bd6dd1
Add honnef.co/go/tools/cmd/unused
cmd/dep/ensure.go:138:2: field overrides is unused (U1000)
cmd/dep/ensure.go:702:6: type stringSlice is unused (U1000)
internal/gps/bridge.go:60:2: field crp is unused (U1000)
internal/gps/pkgtree/pkgtree_test.go:36:3: field Internal is unused (U1000)
internal/gps/pkgtree/pkgtree_test.go:36:13: field External is unused (U1000)
internal/gps/selection.go:76:21: func (*selection).setDependenciesOn is unused (U1000)
internal/gps/selection.go:99:21: func (*selection).getSelectedPackagesIn is unused (U1000)
internal/gps/solve_basic_test.go:1356:33: func (*depspecSourceManager).ExternalReach is unused (U1000)
internal/gps/solve_basic_test.go:1571:16: func fixLock.SolverVersion is unused (U1000)
internal/gps/solve_basic_test.go:1588:18: func dummyLock.SolverVersion is unused (U1000)
internal/gps/solve_failures.go:20:2: const warning is unused (U1000)
internal/gps/solve_failures.go:21:2: const mustResolve is unused (U1000)
internal/gps/solve_failures.go:22:2: const cannotResolve is unused (U1000)
internal/gps/source_manager.go:217:4: func Temporary is unused (U1000)
internal/gps/source_manager.go:712:2: const ctCheckoutVersion is unused (U1000)
internal/gps/typed_radix.go:34:23: func (*deducerTrie).Delete is unused (U1000)
internal/gps/vcs_repo.go:201:6: type svnRepo is unused (U1000)
internal/gps/vcs_repo_test.go:122:6: func testSvnRepo is unused (U1000)
internal/gps/vcs_source.go:573:6: type repo is unused (U1000)
internal/gps/version_queue_test.go:30:23: func (*fakeBridge).ListVersions is unused (U1000)
internal/gps/version_queue_test.go:45:27: func (*fakeFailBridge).ListVersions is unused (U1000)
internal/test/integration/testproj.go:34:2: field h is unused (U1000)
2017-09-11 19:22:23 -04:00
Carolyn Van Slyck 3813baf13a
Document the integration test package 2017-08-29 09:32:36 -05:00
Carolyn Van Slyck 09e8995cc3
Split test pkg into unit and integration test methods
gps is allowed to reference internal/test, but only dep should reference
internal/test/integration.
2017-08-29 08:37:35 -05:00
Jordan Krage b9134b0aa4 gps: source cache: adding close() method to singleSourceCache, sourceGateway, and sourceCoordinator 2017-08-28 22:31:49 -05:00
sam boyer b461c3f829 Merge branch 'master' into new-ensure 2017-07-31 11:42:17 -04:00
Tomo Krajina 39cdb41f3e Typoo, specify when the OSX fix should be executed 2017-07-22 18:25:31 +02:00
Tomo Krajina a09c316b3a Simplify temp dir creation in tests
If the tempdir is evaluated on creation, there is no need for special
handling of "darwin" (OSX) in NewTestProject()
2017-07-22 12:23:08 +02:00
sam boyer 9707806fdf Split out getProjectConstraints, tweak errs, etc. 2017-06-19 02:03:56 -04:00
sam boyer 9b9f762097 Add a handful of ensure -add test cases 2017-06-18 10:34:49 -04:00
sam boyer 07b4de8c68 Merge pull request #670 from gregory-m/compare-vendor-paths-order
Fixed order in test output
2017-05-29 23:35:16 -04:00
sam boyer 8021755918 Merge pull request #665 from jmank88/test_case_serialization
DRY up integration tests; remove 'Cleanup' testcase.json rewrite
2017-05-29 23:25:25 -04:00
Gregory Man 0088f3d8c7 Fixed wrong order in test output
CompareVendorPaths was output got instead want and vice versa
2017-05-28 13:22:45 +03:00
Jordan Krage 9249f903a3 DRY up integration tests; remove 'Cleanup' testcase.json rewrite 2017-05-27 09:44:56 -05:00
sam boyer 05c40eba7f Merge meta-PR to stabilize Gopkg metadata files 2017-05-26 23:52:34 -04:00
Carolyn Van Slyck 9a203ea21a Merge pull request #627 from gregory-m/fix-double-usage-message-626
Fix double usage message
2017-05-25 15:03:21 -05:00
sam boyer a926aa27fa Incorporate implicit caret into stabilize-files 2017-05-24 22:02:28 -04:00
Gregory Man 64d1376f4a Make CompareError fails if expected error matches more than once
In some cases (see #626) dep output same error message twice, and we need to
fail test if this happens
2017-05-23 16:12:27 +03:00
sam boyer f0a81f4b2f Incorporate pr/538, change manifest prop names 2017-05-22 21:59:32 -04:00
Jordan Krage dd3873dd41 Merge branch 'master' into par_cmd_tests 2017-05-22 07:19:59 -05:00
sam boyer 155a6deee8 Merge pull request #571 from niranjan92/master
dep init - support relative path
2017-05-20 22:17:15 -04:00
Niranjan Godbole d8abdbf5a9 dep init refactor tests 2017-05-20 15:00:04 +05:30
Jordan Krage 3cd933dc8d parallelize many cmd/dep tests 2017-05-19 08:51:21 -05:00
Carolyn Van Slyck b373c4fa45 Print integration test output on a newline
This makes is easier to quickly scan the test output, without messing up the section header indents
2017-05-17 14:32:38 -05:00
Niranjan Godbole 358d80c5ad dep init adds test cases for relative path 2017-05-14 17:36:25 +05:30
Jordan Krage 3c5cd668be validate integration test status output 2017-05-10 21:28:47 -05:00
Dave Cheney 1d53807754 test: move test to internal/test
Fixes #521
2017-05-11 08:57:58 +10:00