Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: cipd/client/cipd/ensure/good_test.go

Issue 2657873002: [cipd] use new pin types in common (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cipd/client/cipd/ensure/file.go ('k') | cipd/client/cipd/local/deployer.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cipd/client/cipd/ensure/good_test.go
diff --git a/cipd/client/cipd/ensure/good_test.go b/cipd/client/cipd/ensure/good_test.go
index 80b8f7e938f00bd5b1ecd49cb9aafdfba0136208..d65593bc75dfd2b8766d318e15c9d14bcdf2c038 100644
--- a/cipd/client/cipd/ensure/good_test.go
+++ b/cipd/client/cipd/ensure/good_test.go
@@ -36,7 +36,7 @@ var goodEnsureFiles = []struct {
"path/to/other_package some_tag:version",
"path/to/yet_another a_ref",
),
- &ResolvedFile{"", map[string][]common.Pin{
+ &ResolvedFile{"", common.PinSliceByRoot{
"": {
p("path/to/package", "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef"),
p("path/to/other_package", "some_tag:version"),
@@ -50,7 +50,7 @@ var goodEnsureFiles = []struct {
f(
"path/to/package/${platform}-${arch} latest",
),
- &ResolvedFile{"", map[string][]common.Pin{
+ &ResolvedFile{"", common.PinSliceByRoot{
"": {
p("path/to/package/test_plat-test_arch", "latest"),
},
@@ -62,7 +62,7 @@ var goodEnsureFiles = []struct {
f(
"path/to/package/${platform}-${arch=neep,test_arch} latest",
),
- &ResolvedFile{"", map[string][]common.Pin{
+ &ResolvedFile{"", common.PinSliceByRoot{
"": {p("path/to/package/test_plat-test_arch", "latest")},
}},
},
@@ -72,7 +72,7 @@ var goodEnsureFiles = []struct {
f(
"path/to/package/${platform=spaz}-${arch=neep,test_arch} latest",
),
- &ResolvedFile{"", map[string][]common.Pin{}},
+ &ResolvedFile{"", common.PinSliceByRoot{}},
},
{
@@ -87,7 +87,7 @@ var goodEnsureFiles = []struct {
"@Root", // reset back to empty
"cool/package beef",
),
- &ResolvedFile{"", map[string][]common.Pin{
+ &ResolvedFile{"", common.PinSliceByRoot{
"": {
p("some/package", "latest"),
p("cool/package", "beef"),
@@ -106,7 +106,7 @@ var goodEnsureFiles = []struct {
"",
"some/package version",
),
- &ResolvedFile{"https://cipd.example.com/path/to/thing", map[string][]common.Pin{
+ &ResolvedFile{"https://cipd.example.com/path/to/thing", common.PinSliceByRoot{
"": {
p("some/package", "version"),
},
« no previous file with comments | « cipd/client/cipd/ensure/file.go ('k') | cipd/client/cipd/local/deployer.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698