Skip to content

Codegen of experiments.g.dart doesn't appear to be unit tested #44889

@stereotype441

Description

@stereotype441

In https://dart-review.googlesource.com/c/sdk/+/182300 I fixed a minor null safety bug in the code generation logic in pkg/analyzer/tool/experiments/generate.dart (which generates pkg/analyzer/lib/src/dart/analysis/experiments.g.dart). The fix prevented a crash when running the code generator. Normally we have a unit test to verify that the output of a code generator matches the corresponding generated file, so that we don't forget to make fixes like this one. It looks like we don't have a unit test for experiments.g.dart.

Metadata

Metadata

Assignees

Labels

P3A lower priority bug or feature requestanalyzer-technical-debtlegacy-area-analyzerUse area-devexp instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions