test library
Classes
- AssetsGraph
- A graph of Dart assets and their dependencies.
- InMemoryBuildStep
- An in-memory implementation of BuildStep used by tests.
- SourceParser
- A parser that caches parsed Dart compilation units.
- StringAsset
- A simple in-memory implementation of Asset for testing purposes.
Functions
-
buildStepForTestAsset(
Asset asset, {Set< String> allowedExtensions = const {'.g.dart'}, Set<String> includePackages = const {}, List<Asset> extraAssets = const []}) → InMemoryBuildStep -
Creates an in-memory InMemoryBuildStep for the given
asset. -
buildStepForTestContent(
String content, {Set< String> allowedExtensions = const {'g.dart'}, Set<String> includePackages = const {}}) → InMemoryBuildStep -
Creates an in-memory InMemoryBuildStep from a raw string
content. -
getTestFileResolver(
) → PackageFileResolverImpl -
Creates a
PackageFileResolverImplfor tests.