| Index: sdk/lib/_internal/pub_generated/test/lock_file_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/lock_file_test.dart b/sdk/lib/_internal/pub_generated/test/lock_file_test.dart
|
| similarity index 88%
|
| copy from sdk/lib/_internal/pub/test/lock_file_test.dart
|
| copy to sdk/lib/_internal/pub_generated/test/lock_file_test.dart
|
| index a2ce2f7a1f4b809b555049f2ce2760096ae87c43..de144c2a5b4f24f59cb0deff98df4441e9766f16 100644
|
| --- a/sdk/lib/_internal/pub/test/lock_file_test.dart
|
| +++ b/sdk/lib/_internal/pub_generated/test/lock_file_test.dart
|
| @@ -20,17 +20,17 @@ import 'test_pub.dart';
|
| class MockSource extends Source {
|
| final String name = 'mock';
|
|
|
| - Future<Pubspec> doDescribe(PackageId id) => throw new UnsupportedError(
|
| - "Cannot describe mock packages.");
|
| + Future<Pubspec> doDescribe(PackageId id) =>
|
| + throw new UnsupportedError("Cannot describe mock packages.");
|
|
|
| - Future get(PackageId id, String symlink) => throw new UnsupportedError(
|
| - "Cannot get a mock package.");
|
| + Future get(PackageId id, String symlink) =>
|
| + throw new UnsupportedError("Cannot get a mock package.");
|
|
|
| - Future<String> getDirectory(PackageId id) => throw new UnsupportedError(
|
| - "Cannot get the directory for mock packages.");
|
| + Future<String> getDirectory(PackageId id) =>
|
| + throw new UnsupportedError("Cannot get the directory for mock packages.");
|
|
|
| dynamic parseDescription(String filePath, String description,
|
| - {bool fromLockFile: false}) {
|
| + {bool fromLockFile: false}) {
|
| if (!description.endsWith(' desc')) throw new FormatException();
|
| return description;
|
| }
|
| @@ -204,10 +204,10 @@ packages:
|
| });
|
|
|
| test('dumps the lockfile to YAML', () {
|
| - lockfile.packages['foo'] = new PackageId(
|
| - 'foo', mockSource.name, new Version.parse('1.2.3'), 'foo desc');
|
| - lockfile.packages['bar'] = new PackageId(
|
| - 'bar', mockSource.name, new Version.parse('3.2.1'), 'bar desc');
|
| + lockfile.packages['foo'] =
|
| + new PackageId('foo', mockSource.name, new Version.parse('1.2.3'), 'foo desc');
|
| + lockfile.packages['bar'] =
|
| + new PackageId('bar', mockSource.name, new Version.parse('3.2.1'), 'bar desc');
|
|
|
| expect(loadYaml(lockfile.serialize(null, sources)), equals({
|
| 'packages': {
|
|
|