@@ -455,7 +455,7 @@ void main() {
455455 expect (constructedEvent.eventData.length, 4 );
456456 });
457457
458- test ('Event.flutterWasmDryRun constructed' , () {
458+ test ('Event.flutterWasmDryRun constructed no findings ' , () {
459459 Event generateEventNoFindings () => Event .flutterWasmDryRun (
460460 result: 'success' ,
461461 exitCode: 123 ,
@@ -469,7 +469,7 @@ void main() {
469469 expect (constructedEvent1.eventData['exitCode' ], 123 );
470470 expect (constructedEvent1.eventData.length, 2 );
471471 });
472- test ('Event.flutterWasmDryRun constructed' , () {
472+ test ('Event.flutterWasmDryRun constructed with findings ' , () {
473473 Event generateEventNoFindings () => Event .flutterWasmDryRun (
474474 result: 'success' ,
475475 exitCode: 123 ,
@@ -496,6 +496,26 @@ void main() {
496496 expect (constructedEvent2.eventData.length, 3 );
497497 });
498498
499+ test ('Event.flutterWasmDryRunPackage constructed' , () {
500+ Event generateEvent () => Event .flutterWasmDryRunPackage (
501+ result: 'success' ,
502+ exitCode: 123 ,
503+ findingsInfo: {
504+ '0' : '-ph,pkg1:1.2.3,pkg2:5.4.3' ,
505+ '1' : '-p,pkg3:9.2.44,pkg4:6.4.3' ,
506+ });
507+
508+ final constructedEvent1 = generateEvent ();
509+
510+ expect (generateEvent, returnsNormally);
511+ expect (constructedEvent1.eventName, DashEvent .flutterWasmDryRunPackage);
512+ expect (constructedEvent1.eventData['result' ], 'success' );
513+ expect (constructedEvent1.eventData['exitCode' ], 123 );
514+ expect (constructedEvent1.eventData['0' ], '-ph,pkg1:1.2.3,pkg2:5.4.3' );
515+ expect (constructedEvent1.eventData['1' ], '-p,pkg3:9.2.44,pkg4:6.4.3' );
516+ expect (constructedEvent1.eventData.length, 4 );
517+ });
518+
499519 test ('Event.flutterInjectDarwinPlugins constructed' , () {
500520 Event generateEvent () => Event .flutterInjectDarwinPlugins (
501521 platform: 'ios' ,
@@ -784,7 +804,7 @@ void main() {
784804
785805 // Change this integer below if your PR either adds or removes
786806 // an Event constructor
787- final eventsAccountedForInTests = 31 ;
807+ final eventsAccountedForInTests = 32 ;
788808 expect (eventsAccountedForInTests, constructorCount,
789809 reason: 'If you added or removed an event constructor, '
790810 'ensure you have updated '
0 commit comments