Created
August 8, 2017 13:56
-
-
Save sdboyer/40ad8899b08153be69bbecfb9dd99c18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"unify project on disjoint package imports + source switching": { | |
ds: []depspec{ | |
dsp(mkDepspec("root 0.0.0", "b from baz 1.0.0"), | |
pkg("root", "a", "b"), | |
), | |
dsp(mkDepspec("a 1.0.0"), | |
pkg("a", "b/foo"), | |
), | |
dsp(mkDepspec("b 1.0.0"), | |
pkg("b"), | |
pkg("b/foo"), | |
), | |
dsp(mkDepspec("baz 1.0.0"), | |
pkg("b"), | |
pkg("b/foo"), | |
), | |
}, | |
r: mksolution( | |
"a 1.0.0", | |
mklp("b from baz 1.0.0", ".", "foo"), | |
), | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- FAIL: TestBimodalSolves (0.00s) | |
--- FAIL: TestBimodalSolves/unify_project_on_disjoint_package_imports_+_source_switching (0.00s) | |
solve_test.go:37: Root project is "root" | |
solve_test.go:37: 1 transitively valid internal packages | |
solve_test.go:37: 2 external packages imported from 2 projects | |
solve_test.go:37: (0) ✓ select (root) | |
solve_test.go:37: (1) ? attempt a with 1 pkgs; 1 versions to try | |
solve_test.go:37: (1) try a@1.0.0 | |
solve_test.go:37: (1) ✓ select a@1.0.0 w/1 pkgs | |
solve_test.go:37: (2) ? attempt b with 1 pkgs; 1 versions to try | |
solve_test.go:37: (2) try b@1.0.0 | |
solve_test.go:37: (2) ✓ select b@1.0.0 w/1 pkgs | |
solve_test.go:37: (3) ? revisit b (from baz) to add 1 pkgs | |
solve_test.go:37: (3) ✓ include 1 more pkgs from b (from baz)@1.0.0 | |
solve_test.go:37: ✓ found solution with 3 packages from 3 projects | |
solve_test.go:37: Solver wall times by segment: | |
solve_test.go:37: select-atom: 70.999µs | |
solve_test.go:37: select-root: 45.109µs | |
solve_test.go:37: new-atom: 32.033µs | |
solve_test.go:37: satisfy: 31.358µs | |
solve_test.go:37: add-atom: 7.569µs | |
solve_test.go:37: b-gmal: 5.57µs | |
solve_test.go:37: other: 4.551µs | |
solve_test.go:37: b-deduce-proj-root: 1.259µs | |
solve_test.go:37: b-source-exists: 355ns | |
solve_test.go:37: TOTAL: 198.803µs | |
solve_test.go:192: Solver reported 3 package results, result expected 2 | |
solve_test.go:208: Package list was not not as expected for project b (from baz)@1.0.0: | |
(GOT) [.] | |
(WNT) [. foo] | |
solve_test.go:216: Unexpected project b@1.0.0 present in results, with pkgs: | |
[foo] | |
FAIL | |
exit status 1 | |
FAIL github.com/golang/dep/internal/gps 0.019s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment