Index: sdk/lib/_internal/pub_generated/test/implicit_dependency_test.dart |
diff --git a/sdk/lib/_internal/pub/test/implicit_dependency_test.dart b/sdk/lib/_internal/pub_generated/test/implicit_dependency_test.dart |
similarity index 73% |
copy from sdk/lib/_internal/pub/test/implicit_dependency_test.dart |
copy to sdk/lib/_internal/pub_generated/test/implicit_dependency_test.dart |
index 0a6756679ac7a07f6496086b16de2dcd879c2575..d3c8560f822ac99c4e78c8ef447c1550a350d752 100644 |
--- a/sdk/lib/_internal/pub/test/implicit_dependency_test.dart |
+++ b/sdk/lib/_internal/pub_generated/test/implicit_dependency_test.dart |
@@ -28,31 +28,38 @@ main() { |
pubCommand(command); |
- d.packagesDir({"stack_trace": nextPatch("stack_trace")}).validate(); |
+ d.packagesDir({ |
+ "stack_trace": nextPatch("stack_trace") |
+ }).validate(); |
}); |
- integration("pub's implicit constraint uses the same source and " |
- "description as a dependency override", () { |
+ integration( |
+ "pub's implicit constraint uses the same source and " |
+ "description as a dependency override", |
+ () { |
servePackages((builder) { |
builder.serve("barback", current("barback")); |
builder.serve("stack_trace", nextPatch("stack_trace")); |
builder.serve("source_span", current("source_span")); |
}); |
- d.dir("stack_trace", [ |
- d.libDir("stack_trace", 'stack_trace ${current("stack_trace")}'), |
- d.libPubspec("stack_trace", current("stack_trace")) |
- ]).create(); |
+ d.dir( |
+ "stack_trace", |
+ [ |
+ d.libDir("stack_trace", 'stack_trace ${current("stack_trace")}'), |
+ d.libPubspec("stack_trace", current("stack_trace"))]).create(); |
- d.dir(appPath, [ |
- d.pubspec({ |
+ d.dir(appPath, [d.pubspec({ |
"name": "myapp", |
- "dependencies": {"barback": "any"}, |
+ "dependencies": { |
+ "barback": "any" |
+ }, |
"dependency_overrides": { |
- "stack_trace": {"path": "../stack_trace"}, |
+ "stack_trace": { |
+ "path": "../stack_trace" |
+ }, |
} |
- }) |
- ]).create(); |
+ })]).create(); |
pubCommand(command); |
@@ -63,8 +70,9 @@ main() { |
}).validate(); |
}); |
- integration("doesn't add a constraint if barback isn't in the package " |
- "graph", () { |
+ integration( |
+ "doesn't add a constraint if barback isn't in the package " "graph", |
+ () { |
servePackages((builder) { |
builder.serve("stack_trace", previous("stack_trace")); |
builder.serve("stack_trace", current("stack_trace")); |
@@ -79,12 +87,15 @@ main() { |
pubCommand(command); |
- d.packagesDir({"stack_trace": max("stack_trace")}).validate(); |
+ d.packagesDir({ |
+ "stack_trace": max("stack_trace") |
+ }).validate(); |
}); |
}); |
- integration("unlocks if the locked version doesn't meet pub's " |
- "constraint", () { |
+ integration( |
+ "unlocks if the locked version doesn't meet pub's " "constraint", |
+ () { |
servePackages((builder) { |
builder.serve("barback", current("barback")); |
builder.serve("stack_trace", previous("stack_trace")); |
@@ -92,7 +103,9 @@ main() { |
builder.serve("source_span", current("source_span")); |
}); |
- d.appDir({"barback": "any"}).create(); |
+ d.appDir({ |
+ "barback": "any" |
+ }).create(); |
// Hand-create a lockfile to pin the package to an older version. |
createLockFile("myapp", hosted: { |
@@ -114,8 +127,10 @@ String current(String packageName) => |
String previous(String packageName) { |
var constraint = barback.pubConstraints[packageName]; |
- return new Version(constraint.min.major, constraint.min.minor - 1, 0) |
- .toString(); |
+ return new Version( |
+ constraint.min.major, |
+ constraint.min.minor - 1, |
+ 0).toString(); |
} |
String nextPatch(String packageName) => |