Skip to content
This repository has been archived by the owner on Feb 3, 2018. It is now read-only.

Commit

Permalink
Impl reqs on bimodalFixture
Browse files Browse the repository at this point in the history
Also touchup docs and remove project root prefix from mklp() call.
  • Loading branch information
sdboyer committed Dec 8, 2016
1 parent 8f645c1 commit b6f7c44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion solve_basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func mkrevlock(pairs ...string) fixLock {
return l
}

// mksolution makes creates a map of project identifiers to their LockedProject
// mksolution creates a map of project identifiers to their LockedProject
// result, which is sufficient to act as a solution fixture for the purposes of
// most tests.
//
Expand Down
6 changes: 5 additions & 1 deletion solve_bimodal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ var bimodalFixtures = map[string]bimodalFixture{
r: mksolution(
"foo 1.0.0",
"bar 1.0.0",
mklp("baz 1.0.0", "baz/qux"),
mklp("baz 1.0.0", "qux"),
),
},
"require impossible subpackage": {
Expand Down Expand Up @@ -900,10 +900,14 @@ func (f bimodalFixture) rootmanifest() RootManifest {
tc: pcSliceToMap(f.ds[0].devdeps),
ovr: f.ovr,
ig: make(map[string]bool),
req: make(map[string]bool),
}
for _, ig := range f.ignore {
m.ig[ig] = true
}
for _, req := range f.require {
m.req[req] = true
}

return m
}
Expand Down

0 comments on commit b6f7c44

Please sign in to comment.