diff --git a/test/executables/required_props_collect_and_codemod_test.dart b/test/executables/required_props_collect_and_codemod_test.dart index a4e61a98..7a93fba0 100644 --- a/test/executables/required_props_collect_and_codemod_test.dart +++ b/test/executables/required_props_collect_and_codemod_test.dart @@ -86,6 +86,24 @@ mixin TestPrivateProps on UiProps { String/*?*/ set20percent; $noDataTodoComment String/*?*/ set0percent; +}''')), + d.file('test_class_component_defaults.dart', contains(''' +mixin TestPrivatePropsMixin on UiProps { + String/*?*/ notDefaultedOptional; + /*late*/ String notDefaultedAlwaysSet; + /*late*/ String/*?*/ defaultedNullable; + /*late*/ num/*!*/ defaultedNonNullable; +} + +mixin SomeOtherPropsMixin on UiProps { + /*late*/ num/*!*/ anotherDefaultedNonNullable; +}''')), + d.file('test_class_component_defaults.dart', contains(''' +mixin TestPublic2PropsMixin on UiProps { + String/*?*/ notDefaultedOptional; + /*late*/ String notDefaultedAlwaysSet; + String/*?*/ defaultedNullable; + num/*?*/ defaultedNonNullable; }''')), d.file('test_private_dynamic.dart', contains(''' // TODO(orcm.required_props): This codemod couldn't reliably determine requiredness for these props