@@ -184,12 +184,11 @@ void main() {
184
184
Class htmlInjection;
185
185
Method injectSimpleHtml;
186
186
187
- setUp (() {
187
+ setUpAll (() {
188
188
htmlInjection =
189
189
exLibrary.classes.firstWhere ((c) => c.name == 'HtmlInjection' );
190
190
injectSimpleHtml = htmlInjection.allInstanceMethods
191
191
.firstWhere ((m) => m.name == 'injectSimpleHtml' );
192
- packageGraph.allLocalModelElements.forEach ((m) => m.documentation);
193
192
});
194
193
test ("doesn't inject HTML if --inject-html option is not present" , () {
195
194
expect (
@@ -552,7 +551,7 @@ void main() {
552
551
reexportTwoLib;
553
552
Class SomeClass , SomeOtherClass , YetAnotherClass , AUnicornClass ;
554
553
555
- setUp (() {
554
+ setUpAll (() {
556
555
dartAsyncLib = utils.testPackageGraphSdk.libraries
557
556
.firstWhere ((l) => l.name == 'dart:async' );
558
557
@@ -699,7 +698,7 @@ void main() {
699
698
Method withMacro, withMacro2, withPrivateMacro, withUndefinedMacro;
700
699
EnumField macroReferencedHere;
701
700
702
- setUp (() {
701
+ setUpAll (() {
703
702
dog = exLibrary.classes.firstWhere ((c) => c.name == 'Dog' );
704
703
withMacro =
705
704
dog.allInstanceMethods.firstWhere ((m) => m.name == 'withMacro' );
@@ -751,7 +750,7 @@ void main() {
751
750
Method withAnimationBadHeight;
752
751
Method withAnimationUnknownArg;
753
752
754
- setUp (() {
753
+ setUpAll (() {
755
754
documentationErrors = errorLibrary.classes
756
755
.firstWhere ((c) => c.name == 'DocumentationErrors' );
757
756
withInvalidNamedAnimation = documentationErrors.allInstanceMethods
@@ -768,7 +767,6 @@ void main() {
768
767
.firstWhere ((m) => m.name == 'withAnimationBadHeight' );
769
768
withAnimationUnknownArg = documentationErrors.allInstanceMethods
770
769
.firstWhere ((m) => m.name == 'withAnimationUnknownArg' );
771
- packageGraphErrors.allLocalModelElements.forEach ((m) => m.documentation);
772
770
});
773
771
774
772
test ("warns with invalidly-named animation within the method documentation" ,
@@ -850,7 +848,7 @@ void main() {
850
848
Method withAnimationInline;
851
849
Method withAnimationOutOfOrder;
852
850
853
- setUp (() {
851
+ setUpAll (() {
854
852
dog = exLibrary.classes.firstWhere ((c) => c.name == 'Dog' );
855
853
withAnimation =
856
854
dog.allInstanceMethods.firstWhere ((m) => m.name == 'withAnimation' );
@@ -866,7 +864,6 @@ void main() {
866
864
.firstWhere ((m) => m.name == 'withAnimationInline' );
867
865
withAnimationOutOfOrder = dog.allInstanceMethods
868
866
.firstWhere ((m) => m.name == 'withAnimationOutOfOrder' );
869
- packageGraph.allLocalModelElements.forEach ((m) => m.documentation);
870
867
});
871
868
872
869
test ("renders an unnamed animation within the method documentation" , () {
@@ -920,7 +917,7 @@ void main() {
920
917
Field aImplementingThingy;
921
918
Accessor aImplementingThingyAccessor;
922
919
923
- setUp (() {
920
+ setUpAll (() {
924
921
BaseThingy =
925
922
fakeLibrary.classes.firstWhere ((c) => c.name == 'BaseThingy' );
926
923
BaseThingy2 =
@@ -966,7 +963,7 @@ void main() {
966
963
967
964
ModelFunction short;
968
965
969
- setUp (() {
966
+ setUpAll (() {
970
967
incorrectDocReferenceFromEx = exLibrary.constants
971
968
.firstWhere ((c) => c.name == 'incorrectDocReferenceFromEx' );
972
969
B = exLibrary.classes.firstWhere ((c) => c.name == 'B' );
@@ -1003,7 +1000,7 @@ void main() {
1003
1000
Class DocumentWithATable ;
1004
1001
String docsAsHtml;
1005
1002
1006
- setUp (() {
1003
+ setUpAll (() {
1007
1004
DocumentWithATable = fakeLibrary.classes
1008
1005
.firstWhere ((cls) => cls.name == 'DocumentWithATable' );
1009
1006
docsAsHtml = DocumentWithATable .documentationAsHtml;
@@ -1032,7 +1029,7 @@ void main() {
1032
1029
group ('doc references' , () {
1033
1030
String docsAsHtml;
1034
1031
1035
- setUp (() {
1032
+ setUpAll (() {
1036
1033
docsAsHtml = doAwesomeStuff.documentationAsHtml;
1037
1034
});
1038
1035
@@ -1358,7 +1355,7 @@ void main() {
1358
1355
overrideByBoth,
1359
1356
overrideByModifierClass;
1360
1357
1361
- setUp (() {
1358
+ setUpAll (() {
1362
1359
Iterable <Class > classes = fakeLibrary.publicClasses;
1363
1360
GenericClass = classes.firstWhere ((c) => c.name == 'GenericClass' );
1364
1361
ModifierClass = classes.firstWhere ((c) => c.name == 'ModifierClass' );
@@ -1487,7 +1484,7 @@ void main() {
1487
1484
Class Apple , B , Cat , Cool , Dog , F , Dep , SpecialList ;
1488
1485
Class ExtendingClass , CatString ;
1489
1486
1490
- setUp (() {
1487
+ setUpAll (() {
1491
1488
classes = exLibrary.publicClasses.toList ();
1492
1489
Apple = classes.firstWhere ((c) => c.name == 'Apple' );
1493
1490
B = classes.firstWhere ((c) => c.name == 'B' );
@@ -1741,7 +1738,7 @@ void main() {
1741
1738
group ('Enum' , () {
1742
1739
Enum animal;
1743
1740
1744
- setUp (() {
1741
+ setUpAll (() {
1745
1742
animal = exLibrary.enums.firstWhere ((e) => e.name == 'Animal' );
1746
1743
1747
1744
/// Trigger code reference resolution
@@ -1809,7 +1806,7 @@ void main() {
1809
1806
ModelFunction topLevelFunction;
1810
1807
ModelFunction typeParamOfFutureOr;
1811
1808
1812
- setUp (() {
1809
+ setUpAll (() {
1813
1810
f1 = exLibrary.functions.first;
1814
1811
genericFunction =
1815
1812
exLibrary.functions.firstWhere ((f) => f.name == 'genericFunction' );
@@ -1947,7 +1944,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
1947
1944
group ('Type expansion' , () {
1948
1945
Class TemplatedInterface , ClassWithUnusualProperties ;
1949
1946
1950
- setUp (() {
1947
+ setUpAll (() {
1951
1948
TemplatedInterface =
1952
1949
exLibrary.classes.singleWhere ((c) => c.name == 'TemplatedInterface' );
1953
1950
ClassWithUnusualProperties = fakeLibrary.classes
@@ -2116,7 +2113,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
2116
2113
Method inheritedClear, testGeneric, testGenericMethod;
2117
2114
Method getAFunctionReturningVoid, getAFunctionReturningBool;
2118
2115
2119
- setUp (() {
2116
+ setUpAll (() {
2120
2117
klass = exLibrary.classes.singleWhere ((c) => c.name == 'Klass' );
2121
2118
classB = exLibrary.classes.singleWhere ((c) => c.name == 'B' );
2122
2119
HasGenerics =
@@ -2282,7 +2279,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
2282
2279
Class specializedDuration;
2283
2280
Operator plus, equalsOverride;
2284
2281
2285
- setUp (() {
2282
+ setUpAll (() {
2286
2283
specializedDuration =
2287
2284
exLibrary.classes.firstWhere ((c) => c.name == 'SpecializedDuration' );
2288
2285
plus = specializedDuration.allOperators
@@ -2342,7 +2339,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
2342
2339
Field aProperty;
2343
2340
Field covariantField, covariantSetter;
2344
2341
2345
- setUp (() {
2342
+ setUpAll (() {
2346
2343
c = exLibrary.classes.firstWhere ((c) => c.name == 'Apple' );
2347
2344
f1 = c.staticProperties[0 ]; // n
2348
2345
f2 = c.instanceProperties[0 ];
@@ -2655,7 +2652,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
2655
2652
2656
2653
Class classB;
2657
2654
2658
- setUp (() {
2655
+ setUpAll (() {
2659
2656
TopLevelVariable justGetter =
2660
2657
fakeLibrary.properties.firstWhere ((p) => p.name == 'justGetter' );
2661
2658
onlyGetterGetter = justGetter.getter;
@@ -2704,7 +2701,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
2704
2701
TopLevelVariable complicatedReturn;
2705
2702
TopLevelVariable importantComputations;
2706
2703
2707
- setUp (() {
2704
+ setUpAll (() {
2708
2705
v = exLibrary.properties.firstWhere ((p) => p.name == 'number' );
2709
2706
v3 = exLibrary.properties.firstWhere ((p) => p.name == 'y' );
2710
2707
importantComputations = fakeLibrary.properties
@@ -2839,7 +2836,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
2839
2836
2840
2837
Field aStaticConstField, aName;
2841
2838
2842
- setUp (() {
2839
+ setUpAll (() {
2843
2840
greenConstant =
2844
2841
exLibrary.constants.firstWhere ((c) => c.name == 'COLOR_GREEN' );
2845
2842
orangeConstant =
@@ -2914,7 +2911,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
2914
2911
Constructor appleConstructorFromString;
2915
2912
Constructor constructorTesterDefault, constructorTesterFromSomething;
2916
2913
Class apple, constCat, constructorTester;
2917
- setUp (() {
2914
+ setUpAll (() {
2918
2915
apple = exLibrary.classes.firstWhere ((c) => c.name == 'Apple' );
2919
2916
constCat = exLibrary.classes.firstWhere ((c) => c.name == 'ConstantCat' );
2920
2917
constructorTester =
@@ -2973,7 +2970,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
2973
2970
ModelFunction returningFutureVoid, aVoidParameter;
2974
2971
Class ExtendsFutureVoid , ImplementsFutureVoid , ATypeTakingClassMixedIn ;
2975
2972
2976
- setUp (() {
2973
+ setUpAll (() {
2977
2974
returningFutureVoid = fakeLibrary.functions
2978
2975
.firstWhere ((f) => f.name == 'returningFutureVoid' );
2979
2976
aVoidParameter =
@@ -3043,7 +3040,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
3043
3040
group ('ModelType' , () {
3044
3041
Field fList;
3045
3042
3046
- setUp (() {
3043
+ setUpAll (() {
3047
3044
fList = exLibrary.classes
3048
3045
.firstWhere ((c) => c.name == 'B' )
3049
3046
.instanceProperties
@@ -3061,7 +3058,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
3061
3058
Typedef aComplexTypedef;
3062
3059
Class TypedefUsingClass ;
3063
3060
3064
- setUp (() {
3061
+ setUpAll (() {
3065
3062
t = exLibrary.typedefs.firstWhere ((t) => t.name == 'processMessage' );
3066
3063
generic =
3067
3064
fakeLibrary.typedefs.firstWhere ((t) => t.name == 'NewGenericTypedef' );
@@ -3155,7 +3152,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
3155
3152
applyCovariantParams;
3156
3153
Parameter intNumber, intCheckOptional;
3157
3154
3158
- setUp (() {
3155
+ setUpAll (() {
3159
3156
c = exLibrary.classes.firstWhere ((c) => c.name == 'Apple' );
3160
3157
CovariantMemberParams = fakeLibrary.classes
3161
3158
.firstWhere ((c) => c.name == 'CovariantMemberParams' );
@@ -3248,7 +3245,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
3248
3245
Class b;
3249
3246
List <Class > implA, implC;
3250
3247
3251
- setUp (() {
3248
+ setUpAll (() {
3252
3249
apple = exLibrary.classes.firstWhere ((c) => c.name == 'Apple' );
3253
3250
b = exLibrary.classes.firstWhere ((c) => c.name == 'B' );
3254
3251
implA = apple.publicImplementors.toList ();
@@ -3300,7 +3297,7 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
3300
3297
group ('Annotations' , () {
3301
3298
Class forAnnotation, dog;
3302
3299
Method ctr;
3303
- setUp (() {
3300
+ setUpAll (() {
3304
3301
forAnnotation =
3305
3302
exLibrary.classes.firstWhere ((c) => c.name == 'HasAnnotation' );
3306
3303
dog = exLibrary.classes.firstWhere ((c) => c.name == 'Dog' );
0 commit comments