Functions | |
| str | category_string (Iterable[str] categories, str category) |
| None | dump_to_json_files (Iterable[Dict[str, Any]] scenarios, str filename_prefix) |
| Iterable[LanguageConfig] | gen_scenario_languages (str category) |
| Iterable[Dict[str, Any]] | gen_scenarios (str language_name, Callable[[Dict[str, Any]], bool] scenario_filter_function) |
| None | main () |
| Callable[[Dict[str, Any]], bool] | scenario_filter (str scenario_name_regex='.*', str category='all', str client_language='', str server_language='') |
Variables | |
| LanguageConfig | |
| str performance.scenario_config_exporter.category_string | ( | Iterable[str] | categories, |
| str | category | ||
| ) |
Converts a list of categories into a single string for counting.
Definition at line 57 of file scenario_config_exporter.py.
| None performance.scenario_config_exporter.dump_to_json_files | ( | Iterable[Dict[str, Any]] | scenarios, |
| str | filename_prefix | ||
| ) |
Dumps a list of scenarios to JSON files
Definition at line 131 of file scenario_config_exporter.py.
| Iterable[LanguageConfig] performance.scenario_config_exporter.gen_scenario_languages | ( | str | category | ) |
Generates tuples containing the languages specified in each scenario.
Definition at line 71 of file scenario_config_exporter.py.
| Iterable[Dict[str, Any]] performance.scenario_config_exporter.gen_scenarios | ( | str | language_name, |
| Callable[[Dict[str, Any]], bool] | scenario_filter_function | ||
| ) |
Generates scenarios that match a given filter function.
Definition at line 120 of file scenario_config_exporter.py.
| None performance.scenario_config_exporter.main | ( | ) |
Definition at line 146 of file scenario_config_exporter.py.
| Callable[[Dict[str, Any]], bool] performance.scenario_config_exporter.scenario_filter | ( | str | scenario_name_regex = '.*', |
| str | category = 'all', |
||
| str | client_language = '', |
||
| str | server_language = '' |
||
| ) |
Returns a function to filter scenarios to process.
Definition at line 87 of file scenario_config_exporter.py.
| performance.scenario_config_exporter.LanguageConfig |
Definition at line 51 of file scenario_config_exporter.py.