OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'dart:io'; | 5 import 'dart:io'; |
6 | 6 |
7 import 'package:boolean_selector/boolean_selector.dart'; | 7 import 'package:boolean_selector/boolean_selector.dart'; |
8 import 'package:collection/collection.dart' hide mapMap, mergeMaps; | 8 import 'package:collection/collection.dart'; |
9 import 'package:glob/glob.dart'; | 9 import 'package:glob/glob.dart'; |
10 import 'package:path/path.dart' as p; | 10 import 'package:path/path.dart' as p; |
11 | 11 |
12 import '../backend/metadata.dart'; | 12 import '../backend/metadata.dart'; |
13 import '../backend/platform_selector.dart'; | 13 import '../backend/platform_selector.dart'; |
14 import '../backend/test_platform.dart'; | 14 import '../backend/test_platform.dart'; |
15 import '../frontend/timeout.dart'; | 15 import '../frontend/timeout.dart'; |
16 import '../util/io.dart'; | 16 import '../util/io.dart'; |
17 import '../utils.dart'; | |
18 import 'configuration/args.dart' as args; | 17 import 'configuration/args.dart' as args; |
19 import 'configuration/load.dart'; | 18 import 'configuration/load.dart'; |
20 import 'configuration/values.dart'; | 19 import 'configuration/values.dart'; |
21 | 20 |
22 /// A class that encapsulates the command-line configuration of the test runner. | 21 /// A class that encapsulates the command-line configuration of the test runner. |
23 class Configuration { | 22 class Configuration { |
24 /// An empty configuration with only default values. | 23 /// An empty configuration with only default values. |
25 /// | 24 /// |
26 /// Using this is slightly more efficient than manually constructing a new | 25 /// Using this is slightly more efficient than manually constructing a new |
27 /// configuration with no arguments. | 26 /// configuration with no arguments. |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 | 547 |
549 /// Merges two maps whose values are [Configuration]s. | 548 /// Merges two maps whose values are [Configuration]s. |
550 /// | 549 /// |
551 /// Any overlapping keys in the maps have their configurations merged in the | 550 /// Any overlapping keys in the maps have their configurations merged in the |
552 /// returned map. | 551 /// returned map. |
553 Map<Object, Configuration> _mergeConfigMaps(Map<Object, Configuration> map1, | 552 Map<Object, Configuration> _mergeConfigMaps(Map<Object, Configuration> map1, |
554 Map<Object, Configuration> map2) => | 553 Map<Object, Configuration> map2) => |
555 mergeMaps(map1, map2, | 554 mergeMaps(map1, map2, |
556 value: (config1, config2) => config1.merge(config2)); | 555 value: (config1, config2) => config1.merge(config2)); |
557 } | 556 } |
OLD | NEW |