| Index: sdk/lib/_internal/pub_generated/test/cache/list_test.dart
|
| diff --git a/sdk/lib/_internal/pub_generated/test/cache/list_test.dart b/sdk/lib/_internal/pub_generated/test/cache/list_test.dart
|
| index cfce20773fdfdb84d94b516a1c7ebbae9ebe322d..b3e445931f47ccc15338da0cc39f9975aa3be6a0 100644
|
| --- a/sdk/lib/_internal/pub_generated/test/cache/list_test.dart
|
| +++ b/sdk/lib/_internal/pub_generated/test/cache/list_test.dart
|
| @@ -1,9 +1,17 @@
|
| +// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| library pub_cache_test;
|
| +
|
| import 'package:path/path.dart' as path;
|
| +
|
| import '../descriptor.dart' as d;
|
| import '../test_pub.dart';
|
| +
|
| main() {
|
| initConfig();
|
| +
|
| hostedDir(package) {
|
| return path.join(
|
| sandboxDir,
|
| @@ -12,18 +20,24 @@ main() {
|
| "pub.dartlang.org",
|
| package);
|
| }
|
| +
|
| integration('running pub cache list when there is no cache', () {
|
| schedulePub(args: ['cache', 'list'], output: '{"packages":{}}');
|
| });
|
| +
|
| integration('running pub cache list on empty cache', () {
|
| + // Set up a cache.
|
| d.dir(
|
| cachePath,
|
| [d.dir('hosted', [d.dir('pub.dartlang.org', [])])]).create();
|
| +
|
| schedulePub(args: ['cache', 'list'], outputJson: {
|
| "packages": {}
|
| });
|
| });
|
| +
|
| integration('running pub cache list', () {
|
| + // Set up a cache.
|
| d.dir(
|
| cachePath,
|
| [
|
| @@ -37,6 +51,7 @@ main() {
|
| d.dir(
|
| "bar-2.0.0",
|
| [d.libPubspec("bar", "2.0.0"), d.libDir("bar")])])])]).create();
|
| +
|
| schedulePub(args: ['cache', 'list'], outputJson: {
|
| "packages": {
|
| "bar": {
|
| @@ -52,7 +67,9 @@ main() {
|
| }
|
| });
|
| });
|
| +
|
| integration('includes packages containing deps with bad sources', () {
|
| + // Set up a cache.
|
| d.dir(
|
| cachePath,
|
| [
|
| @@ -66,6 +83,7 @@ main() {
|
| "bad": "bar"
|
| }
|
| }), d.libDir("foo")])])])]).create();
|
| +
|
| schedulePub(args: ['cache', 'list'], outputJson: {
|
| "packages": {
|
| "foo": {
|
|
|