third_party/blink/tools/blinkpy/web_tests/models/test_configuration.py
def to_config_set(self, specifier_set, error_list=None):
        """Convert a list of specifiers into a set of TestConfiguration instances."""
        if len(specifier_set) == 0:
            return copy.copy(self._all_test_configurations)

        matching_sets = {}

        for specifier in specifier_set:
            for expanded_specifier in self._expand_macros(specifier):
                configurations = self._specifier_to_configuration_set.get(
                    expanded_specifier)
                if not configurations:
                    if error_list is not None:
                        error_list.append("Unrecognized specifier '" +
                                          expanded_specifier + "'")
                    return set()
                category = self._specifier_sorter.category_for_specifier(
                    expanded_specifier)
                matching_sets.setdefault(category,
                                         set()).update(configurations)

        return reduce(set.intersection, list(matching_sets.values()))
Convert a list of specifiers into a set of TestConfiguration instances.
Convert a list of specifiers into a set of TestConfiguration instances.
Convert a list of specifiers into a set of TestConfiguration instances .
def to_config_set(self, specifier_set, error_list=None):
        if len(specifier_set) == 0:
            return copy.copy(self._all_test_configurations)
        matching_sets = {}
        for specifier in specifier_set:
            for expanded_specifier in self._expand_macros(specifier):
                configurations = self._specifier_to_configuration_set.get(
                    expanded_specifier)
                if not configurations:
                    if error_list is not None:
                        error_list.append("Unrecognized specifier '" +
                                          expanded_specifier + "'")
                    return set()
                category = self._specifier_sorter.category_for_specifier(
                    expanded_specifier)
                matching_sets.setdefault(category,
                                         set()).update(configurations)
        return reduce(set.intersection, list(matching_sets.values()))
def to_config_set ( self , specifier_set , error_list = None ) : if len ( specifier_set ) == 0 : return copy . copy ( self . _all_test_configurations ) matching_sets = { } for specifier in specifier_set : for expanded_specifier in self . _expand_macros ( specifier ) : configurations = self . _specifier_to_configuration_set . get ( expanded_specifier ) if not configurations : if error_list is not None : error_list . append ( "Unrecognized specifier '" + expanded_specifier + "'" ) return set ( ) category = self . _specifier_sorter . category_for_specifier ( expanded_specifier ) matching_sets . setdefault ( category , set ( ) ) . update ( configurations ) return reduce ( set . intersection , list ( matching_sets . values ( ) ) )
Convert a list of specifiers into a set of TestConfiguration instances.
Convert a list of specifiers into a set of TestConfiguration instances .
"""Convert a list of specifiers into a set of TestConfiguration instances."""
self
specifier_set
error_list