Skip to content

Commit b7408ff

Browse files
srawlinsCommit Queue
authored andcommitted
analyzer: rename analysis options test cases
These test cases do _not_ test the 'plugins' section under 'analyzer'; they test the top-level 'plugins' section. This is just a rename and sort CL. Change-Id: Iee30a8116cf60646babfaa4aea0ea9f86e8eeac1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/449064 Commit-Queue: Samuel Rawlins <[email protected]> Auto-Submit: Samuel Rawlins <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]>
1 parent 7ade20d commit b7408ff

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

pkg/analyzer/test/src/options/analysis_options_test.dart

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,23 @@ analyzer:
303303
expect(analysisOptions.propagateLinterExceptions, true);
304304
}
305305

306-
test_analyzer_plugins_pathConstraint() {
306+
test_codeStyle_format_false() {
307+
var analysisOptions = parseOptions('''
308+
code-style:
309+
format: false
310+
''');
311+
expect(analysisOptions.codeStyleOptions.useFormatter, false);
312+
}
313+
314+
test_codeStyle_format_true() {
315+
var analysisOptions = parseOptions('''
316+
code-style:
317+
format: true
318+
''');
319+
expect(analysisOptions.codeStyleOptions.useFormatter, true);
320+
}
321+
322+
test_plugins_pathConstraint() {
307323
var analysisOptions = parseOptions('''
308324
plugins:
309325
plugin_one:
@@ -326,7 +342,7 @@ plugins:
326342
);
327343
}
328344

329-
test_analyzer_plugins_pathConstraint_relative() {
345+
test_plugins_pathConstraint_relative() {
330346
var analysisOptions = parseOptions('''
331347
plugins:
332348
plugin_one:
@@ -349,7 +365,7 @@ plugins:
349365
);
350366
}
351367

352-
test_analyzer_plugins_pathConstraint_relativeNonNormal() {
368+
test_plugins_pathConstraint_relativeNonNormal() {
353369
var analysisOptions = parseOptions('''
354370
plugins:
355371
plugin_one:
@@ -372,7 +388,7 @@ plugins:
372388
);
373389
}
374390

375-
test_analyzer_plugins_scalarConstraint() {
391+
test_plugins_scalarConstraint() {
376392
var analysisOptions = parseOptions('''
377393
plugins:
378394
plugin_one: ^1.2.3
@@ -391,7 +407,7 @@ plugins:
391407
);
392408
}
393409

394-
test_analyzer_plugins_versionConstraint() {
410+
test_plugins_versionConstraint() {
395411
var analysisOptions = parseOptions('''
396412
plugins:
397413
plugin_one:
@@ -411,22 +427,6 @@ plugins:
411427
);
412428
}
413429

414-
test_codeStyle_format_false() {
415-
var analysisOptions = parseOptions('''
416-
code-style:
417-
format: false
418-
''');
419-
expect(analysisOptions.codeStyleOptions.useFormatter, false);
420-
}
421-
422-
test_codeStyle_format_true() {
423-
var analysisOptions = parseOptions('''
424-
code-style:
425-
format: true
426-
''');
427-
expect(analysisOptions.codeStyleOptions.useFormatter, true);
428-
}
429-
430430
test_signature_on_different_error_ordering() {
431431
var options = parseOptions('''
432432
analyzer:

0 commit comments

Comments
 (0)