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

Side by Side Diff: test/validator/pubspec_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/utils_test.dart ('k') | test/validator/sdk_constraint_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) 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:pub/src/entrypoint.dart';
6 import 'package:pub/src/validator.dart';
7 import 'package:pub/src/validator/pubspec.dart'; 5 import 'package:pub/src/validator/pubspec.dart';
8 import 'package:scheduled_test/scheduled_test.dart';
9 6
10 import '../descriptor.dart' as d; 7 import '../descriptor.dart' as d;
11 import '../test_pub.dart'; 8 import '../test_pub.dart';
12 import 'utils.dart'; 9 import 'utils.dart';
13 10
14 main() { 11 main() {
15 integration('should consider a package valid if it has a pubspec', () { 12 integration('should consider a package valid if it has a pubspec', () {
16 d.validPackage.create(); 13 d.validPackage.create();
17 14
18 expectNoValidationError((entrypoint) => new PubspecValidator(entrypoint)); 15 expectNoValidationError((entrypoint) => new PubspecValidator(entrypoint));
19 }); 16 });
20 17
21 integration('should consider a package invalid if it has a .gitignored ' 18 integration('should consider a package invalid if it has a .gitignored '
22 'pubspec', () { 19 'pubspec', () {
23 var repo = d.git(appPath, [d.file(".gitignore", "pubspec.yaml")]); 20 var repo = d.git(appPath, [d.file(".gitignore", "pubspec.yaml")]);
24 d.validPackage.create(); 21 d.validPackage.create();
25 repo.create(); 22 repo.create();
26 23
27 expectValidationError((entrypoint) => new PubspecValidator(entrypoint)); 24 expectValidationError((entrypoint) => new PubspecValidator(entrypoint));
28 }); 25 });
29 } 26 }
OLDNEW
« no previous file with comments | « test/utils_test.dart ('k') | test/validator/sdk_constraint_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698