Files
sdk/pkg/analyzer/test/embedder_tests.dart
T
Konstantin Shcheglov 5d18663a7d Remove TestPathTranslator and other related utilities.
Change-Id: I1d32824f9e8b6d154b2de970790bdfa32b9aee0b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279272
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2023-01-18 21:00:49 +00:00

26 lines
903 B
Dart

// Copyright (c) 2016, 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.
import 'package:analyzer/src/test_utilities/resource_provider_mixin.dart';
abstract class EmbedderRelatedTest with ResourceProviderMixin {
final String emptyPath = '/home/.pub-cache/empty';
final String foxPath = '/home/.pub-cache/fox';
final String foxLib = '/home/.pub-cache/fox/lib';
void setUp() {
newFolder('/home/.pub-cache/empty');
newFolder('/home/.pub-cache/fox/lib');
newFile('/home/.pub-cache/fox/lib/_embedder.yaml', r'''
embedded_libs:
"dart:deep": "deep/directory/file.dart"
"dart:core" : "core/core.dart"
"dart:fox": "slippy.dart"
"dart:bear": "grizzly.dart"
"dart:relative": "../relative.dart"
"fart:loudly": "nomatter.dart"
''');
}
}