c0bd240db8
This changes the API of writing an analysis rule test. Instead of overriding the `String get analysisRule` property, and registering the rule in `setUp` (which requires importing a private type), the developer can now just set the `AbstractAnalysisRule rule` field in `setUp`. This both removes the requirement to manually register the rule, and reduces the risk of typos, by removing the String API. Fixes https://github.com/dart-lang/sdk/issues/61793 Change-Id: Ic7753d3157e06906ba5ccbccfea67aaa3179dcc8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/459340 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
This package provides testing utilities related to the analyzer and analysis_server_plugin packages.
Support
Post issues and feature requests at https://github.com/dart-lang/sdk/issues. These will be triaged according to the analyzer triage priorities.
Questions and discussions are welcome at the #hackers-analyzer Discord channel.
License
See the LICENSE file.