Skip to content

Commit c2d28d1

Browse files
committed
Rename Null Safety tests.
R=brianwilkerson@google.com Change-Id: I9276244cab52cb5c0f2687052f2a3df9a9fd48b2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155720 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
1 parent 4d3ec06 commit c2d28d1

File tree

69 files changed

+188
-171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+188
-171
lines changed

pkg/analysis_server/test/analysis/notification_highlights2_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void main() {
1717
defineReflectiveSuite(() {
1818
defineReflectiveTests(AnalysisNotificationHighlightsTest);
1919
defineReflectiveTests(HighlightsWithControlFlowCollectionsTest);
20-
defineReflectiveTests(HighlightsWithNnbdTest);
20+
defineReflectiveTests(HighlightsWithNullSafetyTest);
2121
defineReflectiveTests(HighlightTypeTest);
2222
});
2323
}
@@ -1297,7 +1297,7 @@ f(a, b) {
12971297
}
12981298

12991299
@reflectiveTest
1300-
class HighlightsWithNnbdTest extends HighlightsTestSupport {
1300+
class HighlightsWithNullSafetyTest extends HighlightsTestSupport {
13011301
@override
13021302
void createProject({Map<String, String> packageRoots}) {
13031303
addAnalysisOptionsFile('''

pkg/analysis_server/test/analysis/notification_highlights_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void main() {
1717
defineReflectiveSuite(() {
1818
defineReflectiveTests(AnalysisNotificationHighlightsTest);
1919
defineReflectiveTests(HighlightsWithControlFlowCollectionsTest);
20-
defineReflectiveTests(HighlightsWithNnbdTest);
20+
defineReflectiveTests(HighlightsWithNullSafetyTest);
2121
defineReflectiveTests(HighlightTypeTest);
2222
});
2323
}
@@ -1145,7 +1145,7 @@ f(a, b) {
11451145
}
11461146

11471147
@reflectiveTest
1148-
class HighlightsWithNnbdTest extends HighlightsTestSupport {
1148+
class HighlightsWithNullSafetyTest extends HighlightsTestSupport {
11491149
@override
11501150
void createProject({Map<String, String> packageRoots}) {
11511151
addAnalysisOptionsFile('''

pkg/analysis_server/test/services/completion/dart/keyword_contributor_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import 'completion_contributor_util.dart';
1616
void main() {
1717
defineReflectiveSuite(() {
1818
defineReflectiveTests(KeywordContributorTest);
19-
defineReflectiveTests(KeywordContributorWithNnbdTest);
19+
defineReflectiveTests(KeywordContributorWithNullSafetyTest);
2020
});
2121
}
2222

@@ -2348,7 +2348,7 @@ f() => [...^];
23482348
}
23492349

23502350
@reflectiveTest
2351-
class KeywordContributorWithNnbdTest extends KeywordContributorTest {
2351+
class KeywordContributorWithNullSafetyTest extends KeywordContributorTest {
23522352
@override
23532353
void setupResourceProvider() {
23542354
super.setupResourceProvider();

pkg/analysis_server/test/services/completion/dart/relevance/named_argument_relevance_test.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import 'completion_relevance.dart';
1111
void main() {
1212
defineReflectiveSuite(() {
1313
defineReflectiveTests(NamedArgumentRelevanceTest);
14-
defineReflectiveTests(NamedArgumentRelevanceWithNnbdTest);
14+
defineReflectiveTests(NamedArgumentRelevanceWithNullSafetyTest);
1515
});
1616
}
1717

@@ -47,7 +47,8 @@ void g() => f(^);
4747
}
4848

4949
@reflectiveTest
50-
class NamedArgumentRelevanceWithNnbdTest extends NamedArgumentRelevanceTest {
50+
class NamedArgumentRelevanceWithNullSafetyTest
51+
extends NamedArgumentRelevanceTest {
5152
@override
5253
List<String> get enabledExperiments => ['non-nullable'];
5354

pkg/analysis_server/test/src/services/correction/assist/shadow_field_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import 'assist_processor.dart';
1212
void main() {
1313
defineReflectiveSuite(() {
1414
defineReflectiveTests(ShadowFieldTest);
15-
defineReflectiveTests(ShadowFieldWithNNBDTest);
15+
defineReflectiveTests(ShadowFieldWithNullSafetyTest);
1616
});
1717
}
1818

@@ -108,7 +108,7 @@ class C {
108108
}
109109

110110
@reflectiveTest
111-
class ShadowFieldWithNNBDTest extends ShadowFieldTest {
111+
class ShadowFieldWithNullSafetyTest extends ShadowFieldTest {
112112
@override
113113
void setUp() {
114114
super.setUp();

pkg/analysis_server/test/src/services/correction/fix/add_required_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import 'fix_processor.dart';
1313
void main() {
1414
defineReflectiveSuite(() {
1515
defineReflectiveTests(AddRequiredTest);
16-
defineReflectiveTests(AddRequiredWithNNBDTest);
16+
defineReflectiveTests(AddRequiredWithNullSafetyTest);
1717
});
1818
}
1919

@@ -40,7 +40,7 @@ void function({@required String param}) {
4040
}
4141

4242
@reflectiveTest
43-
class AddRequiredWithNNBDTest extends FixProcessorTest {
43+
class AddRequiredWithNullSafetyTest extends FixProcessorTest {
4444
@override
4545
List<String> get experiments => [EnableString.non_nullable];
4646

pkg/analysis_server/test/src/services/correction/fix/inline_typedef_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import 'fix_processor.dart';
1313
void main() {
1414
defineReflectiveSuite(() {
1515
defineReflectiveTests(InlineTypedefTest);
16-
defineReflectiveTests(InlineTypedefWithNNBDTest);
16+
defineReflectiveTests(InlineTypedefWithNullSafetyTest);
1717
});
1818
}
1919

@@ -137,7 +137,7 @@ void g(Function<T>(T) f) {}
137137
}
138138

139139
@reflectiveTest
140-
class InlineTypedefWithNNBDTest extends InlineTypedefTest {
140+
class InlineTypedefWithNullSafetyTest extends InlineTypedefTest {
141141
@override
142142
List<String> get experiments => [EnableString.non_nullable];
143143

pkg/analysis_server/test/src/services/correction/fix/make_final_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void main() {
1414
defineReflectiveSuite(() {
1515
defineReflectiveTests(PreferFinalInForEachTest);
1616
defineReflectiveTests(PreferFinalFieldsTest);
17-
defineReflectiveTests(PreferFinalFieldsWithNNBDTest);
17+
defineReflectiveTests(PreferFinalFieldsWithNullSafetyTest);
1818
});
1919
}
2020

@@ -58,7 +58,7 @@ class C {
5858
}
5959

6060
@reflectiveTest
61-
class PreferFinalFieldsWithNNBDTest extends FixProcessorLintTest {
61+
class PreferFinalFieldsWithNullSafetyTest extends FixProcessorLintTest {
6262
@override
6363
List<String> get experiments => [EnableString.non_nullable];
6464

pkg/analysis_server/test/src/services/correction/fix/replace_cascade_with_dot_test.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import 'fix_processor.dart';
1313
void main() {
1414
defineReflectiveSuite(() {
1515
defineReflectiveTests(ReplaceCascadeWithDotTest);
16-
defineReflectiveTests(ReplaceCascadeWithDotWithNNBDTest);
16+
defineReflectiveTests(ReplaceCascadeWithDotWithNullSafetyTest);
1717
});
1818
}
1919

@@ -99,7 +99,8 @@ void f(String s) {
9999
}
100100

101101
@reflectiveTest
102-
class ReplaceCascadeWithDotWithNNBDTest extends ReplaceCascadeWithDotTest {
102+
class ReplaceCascadeWithDotWithNullSafetyTest
103+
extends ReplaceCascadeWithDotTest {
103104
@override
104105
List<String> get experiments => [EnableString.non_nullable];
105106

pkg/analyzer/test/src/dart/analysis/search_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import 'base.dart';
2121
main() {
2222
defineReflectiveSuite(() {
2323
defineReflectiveTests(SearchTest);
24-
defineReflectiveTests(SearchWithNnbdTest);
24+
defineReflectiveTests(SearchWithNullSafetyTest);
2525
});
2626
}
2727

@@ -1817,7 +1817,7 @@ class NoMatchABCDEF {}
18171817
}
18181818

18191819
@reflectiveTest
1820-
class SearchWithNnbdTest extends SearchTest {
1820+
class SearchWithNullSafetyTest extends SearchTest {
18211821
@override
18221822
AnalysisOptionsImpl createAnalysisOptions() => AnalysisOptionsImpl()
18231823
..contextFeatures = FeatureSet.forTesting(

0 commit comments

Comments
 (0)