Index: pkg/dev_compiler/test/options/options_test.dart |
diff --git a/pkg/dev_compiler/test/options/options_test.dart b/pkg/dev_compiler/test/options/options_test.dart |
index 5fff692a8a1ed697b45147cf77b24a7f586dfd25..a87034d5969ed10954919af0e3682bb056e458b2 100644 |
--- a/pkg/dev_compiler/test/options/options_test.dart |
+++ b/pkg/dev_compiler/test/options/options_test.dart |
@@ -79,4 +79,21 @@ main() { |
var analysisOptions = compiler.context.analysisOptions; |
expect(analysisOptions.enableStrictCallChecks, isTrue); |
}); |
+ |
+ test('custom module name for summary', () { |
+ var args = <String>[ |
+ '-snormal', |
+ '-scustom/path:module', |
+ '-sanother', |
+ '-scustom/path2:module2' |
+ ]; |
+ |
+ var argResults = ddcArgParser().parse(args); |
+ var options = new AnalyzerOptions.fromArguments(argResults); |
+ expect(options.summaryPaths, |
+ orderedEquals(['normal', 'custom/path', 'another', 'custom/path2'])); |
+ expect(options.customSummaryModules['custom/path'], equals('module')); |
+ expect(options.customSummaryModules['custom/path2'], equals('module2')); |
+ expect(options.customSummaryModules.containsKey('normal'), isFalse); |
+ }); |
} |