blob: 164e1e44625de1ac8d051a9643a86d243b621fdc [file] [log] [blame]
// Copyright (c) 2020, 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';
import 'package:analyzer/src/workspace/workspace.dart';
/// Utilities for tests of subclasses of [WorkspacePackage].
abstract class WorkspacePackageTest with ResourceProviderMixin {
/// The workspace containing the packages.
Workspace workspace;
/// Return the package containing the given [path], or `null` if there is no
/// such package in the [workspace].
WorkspacePackage findPackage(String path) =>