f81079035f
Most of the behavior of LintRuleTest is extracted into a public class in analyzer_testing, AnalysisRuleTest. A little bit of code is left in LintRuleTest, so that first-party lint rules can be tested by registering the first-party lint rules. And those lint rules can declare the `lintRule` that each is concerned with, rather than the new `analysisRule` getter. PubPackageResolutionTest is left as private impl, because I think it may undergo some changes, and we may be merging more shared code, and the name may change. A few first-party lint rules have tests that refer to this class, which is OK. Other than that, no code or behavior changes are in this CL. Work towards https://github.com/dart-lang/sdk/issues/55660 Change-Id: I447850c438af7d0fe90889d2eaec6f2f8b4f8281 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/429420 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Samuel Rawlins <srawlins@google.com>
90 lines
4.4 KiB
Plaintext
90 lines
4.4 KiB
Plaintext
package:analyzer_testing/analysis_rule/analysis_rule.dart:
|
|
error (function: ExpectedDiagnostic Function(DiagnosticCode, int, int, {Pattern? messageContains}))
|
|
AnalysisRuleTest (class extends PubPackageResolutionTest):
|
|
new (constructor: AnalysisRuleTest Function())
|
|
analysisRule (getter: String)
|
|
assertNoPubspecDiagnostics (method: Future<void> Function(String))
|
|
assertPubspecDiagnostics (method: Future<void> Function(String, List<ExpectedDiagnostic>))
|
|
lint (method: ExpectedDiagnostic Function(int, int, {Pattern? correctionContains, Pattern? messageContains, String? name}))
|
|
setUp (method: void Function())
|
|
package:analyzer_testing/experiments/experiments.dart:
|
|
experimentsForTests (static getter: List<String>)
|
|
experimentsForTests= (static setter: List<String>)
|
|
package:analyzer_testing/mock_packages/mock_packages.dart:
|
|
BlazeMockPackages (class extends Object):
|
|
instance (static getter: BlazeMockPackages)
|
|
addFlutter (method: void Function(ResourceProvider))
|
|
addMeta (method: void Function(ResourceProvider))
|
|
MockPackagesMixin (mixin on Object):
|
|
packagesRootPath (getter: String)
|
|
pathContext (getter: Context)
|
|
resourceProvider (getter: ResourceProvider)
|
|
addAngularMeta (method: Folder Function())
|
|
addFfi (method: Folder Function())
|
|
addFixnum (method: Folder Function())
|
|
addFlutter (method: Folder Function())
|
|
addFlutterTest (method: Folder Function())
|
|
addJs (method: Folder Function())
|
|
addKernel (method: Folder Function())
|
|
addMeta (method: Folder Function())
|
|
addPedantic (method: Folder Function())
|
|
addTestReflectiveLoader (method: Folder Function())
|
|
addUI (method: Folder Function())
|
|
addVectorMath (method: Folder Function())
|
|
package:analyzer_testing/package_root.dart:
|
|
packageRoot (static getter: String)
|
|
package:analyzer_testing/resource_provider_mixin.dart:
|
|
ResourceProviderMixin (mixin on Object):
|
|
pathContext (getter: Context)
|
|
resourceProvider (getter: ResourceProvider)
|
|
convertPath (method: String Function(String))
|
|
deleteFile (method: void Function(String))
|
|
deleteFolder (method: void Function(String))
|
|
fromUri (method: String Function(Uri))
|
|
getFile (method: File Function(String))
|
|
getFolder (method: Folder Function(String))
|
|
join (method: String Function(String, [String?, String?, String?, String?, String?, String?, String?]))
|
|
modifyFile2 (method: void Function(File, String))
|
|
newAnalysisOptionsYamlFile (method: File Function(String, String))
|
|
newBazelBuildFile (method: File Function(String, String))
|
|
newBuildGnFile (method: File Function(String, String))
|
|
newFile (method: File Function(String, String))
|
|
newFolder (method: Folder Function(String))
|
|
newLink (method: Link Function(String, String))
|
|
newPackageConfigJsonFile (method: File Function(String, String))
|
|
newPackageConfigJsonFileFromBuilder (method: File Function(String, PackageConfigFileBuilder))
|
|
newPubspecYamlFile (method: File Function(String, String))
|
|
newSinglePackageConfigJsonFile (method: void Function({required String name, required String packagePath}))
|
|
toUri (method: Uri Function(String))
|
|
toUriStr (method: String Function(String))
|
|
package:analyzer_testing/src/analysis_rule/pub_package_resolution.dart:
|
|
ExpectedDiagnostic (non-public)
|
|
PubPackageResolutionTest (non-public)
|
|
package:analyzer_testing/utilities/extensions/resource_provider.dart:
|
|
ResourceProviderExtension (extension on ResourceProvider):
|
|
convertPath (method: String Function(String))
|
|
package:analyzer_testing/utilities/utilities.dart:
|
|
analysisOptionsContent (function: String Function({List<String> experiments, List<String> includes, List<String> legacyPlugins, List<String> rules, bool strictCasts, bool strictInference, bool strictRawTypes, List<String> unignorableNames}))
|
|
pubspecYamlContent (function: String Function({List<String> dependencies, String? name, String? sdkVersion}))
|
|
dart:async:
|
|
Future (referenced)
|
|
dart:core:
|
|
List (referenced)
|
|
Object (referenced)
|
|
Pattern (referenced)
|
|
String (referenced)
|
|
Uri (referenced)
|
|
bool (referenced)
|
|
int (referenced)
|
|
package:_fe_analyzer_shared/src/base/errors.dart:
|
|
DiagnosticCode (referenced)
|
|
package:analyzer/file_system/file_system.dart:
|
|
File (referenced)
|
|
Folder (referenced)
|
|
Link (referenced)
|
|
ResourceProvider (referenced)
|
|
package:analyzer/utilities/package_config_file_builder.dart:
|
|
PackageConfigFileBuilder (referenced)
|
|
package:path/src/context.dart:
|
|
Context (referenced)
|