| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'package:scheduled_test/scheduled_test.dart'; | |
| 6 | |
| 7 import 'descriptor.dart' as d; | 5 import 'descriptor.dart' as d; |
| 8 import 'test_pub.dart'; | 6 import 'test_pub.dart'; |
| 9 import '../lib/src/barback.dart' as barback; | 7 import '../lib/src/barback.dart' as barback; |
| 10 import '../lib/src/version.dart'; | 8 import '../lib/src/version.dart'; |
| 11 | 9 |
| 12 main() { | 10 main() { |
| 13 initConfig(); | 11 initConfig(); |
| 14 | 12 |
| 15 forBothPubGetAndUpgrade((command) { | 13 forBothPubGetAndUpgrade((command) { |
| 16 integration("implicitly constrains it to versions pub supports", () { | 14 integration("implicitly constrains it to versions pub supports", () { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 var constraint = barback.pubConstraints[packageName]; | 115 var constraint = barback.pubConstraints[packageName]; |
| 118 return new Version(constraint.min.major, constraint.min.minor - 1, 0) | 116 return new Version(constraint.min.major, constraint.min.minor - 1, 0) |
| 119 .toString(); | 117 .toString(); |
| 120 } | 118 } |
| 121 | 119 |
| 122 String nextPatch(String packageName) => | 120 String nextPatch(String packageName) => |
| 123 barback.pubConstraints[packageName].min.nextPatch.toString(); | 121 barback.pubConstraints[packageName].min.nextPatch.toString(); |
| 124 | 122 |
| 125 String max(String packageName) => | 123 String max(String packageName) => |
| 126 barback.pubConstraints[packageName].max.toString(); | 124 barback.pubConstraints[packageName].max.toString(); |
| OLD | NEW |