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

Side by Side Diff: test/validator/sdk_constraint_test.dart

Issue 1556243002: Fix analyzer hints and warnings in test/. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « test/validator/pubspec_test.dart ('k') | test/version_solver_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 'dart:async';
6 import 'dart:convert';
7
8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart';
10 import 'package:path/path.dart' as path;
11 import 'package:pub/src/entrypoint.dart'; 5 import 'package:pub/src/entrypoint.dart';
12 import 'package:pub/src/validator.dart'; 6 import 'package:pub/src/validator.dart';
13 import 'package:pub/src/validator/sdk_constraint.dart'; 7 import 'package:pub/src/validator/sdk_constraint.dart';
14 import 'package:scheduled_test/scheduled_test.dart'; 8 import 'package:scheduled_test/scheduled_test.dart';
15 9
16 import '../descriptor.dart' as d; 10 import '../descriptor.dart' as d;
17 import '../test_pub.dart'; 11 import '../test_pub.dart';
18 import 'utils.dart'; 12 import 'utils.dart';
19 13
20 Validator sdkConstraint(Entrypoint entrypoint) => 14 Validator sdkConstraint(Entrypoint entrypoint) =>
(...skipping 16 matching lines...) Expand all
37 31
38 test("should consider a package invalid if it has an SDK constraint with " 32 test("should consider a package invalid if it has an SDK constraint with "
39 "^", () { 33 "^", () {
40 d.dir(appPath, [ 34 d.dir(appPath, [
41 d.libPubspec("test_pkg", "1.0.0", sdk: "^1.8.0") 35 d.libPubspec("test_pkg", "1.0.0", sdk: "^1.8.0")
42 ]).create(); 36 ]).create();
43 expect(schedulePackageValidation(sdkConstraint), 37 expect(schedulePackageValidation(sdkConstraint),
44 completion(pairOf(anyElement(contains('">=1.8.0 <2.0.0"')), isEmpty))); 38 completion(pairOf(anyElement(contains('">=1.8.0 <2.0.0"')), isEmpty)));
45 }); 39 });
46 } 40 }
OLDNEW
« no previous file with comments | « test/validator/pubspec_test.dart ('k') | test/version_solver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698