| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/ |
| D | chapters.py | 36 def __init__(self, chapters_name: str) -> None: 42 def __init__(self, item: str) -> None: 51 def __init__(self, chapters_file: str): 56 def __parse(chapters_file: str) -> Dict[str, Chapter]: 78 def __parse_item(includes: List[str], excludes: List[str], yaml_item: Union[str, dict]) -> None: 92 …def __parse_chapter(name: str, yaml_items: Sequence[Union[str, Dict[str, str]]], chapters_file: st… argument 107 def __filter_by_mask(mask: str, files: List[str], extension: str) -> List[str]: 121 …def filter_by_chapter(self, chapter_name: str, base_folder: str, files: List[str], extension: str)… 152 def __check_cycle(self, chapter: Chapter, seen_chapters: List[str]) -> None:
|
| D | utils.py | 43 def download(name: str, git_url: str, revision: str, target_path: str, show_progress: bool = False)… 72 def generate(name: str, url: str, revision: str, generated_root: Path, *, 73 … stamp_name: Optional[str] = None, test_subdir: str = "test", show_progress: bool = False, 106 def copy(source_path: Union[Path, str], dest_path: Union[Path, str], remove_if_exist: bool = True) … argument 117 def read_file(file_path: Union[Path, str]) -> str: argument 123 def write_2_file(file_path: Union[Path, str], content: str) -> None: argument 132 def purify(line: str) -> str: 136 def enum_from_str(item_name: str, enum_cls: Type[EnumT]) -> Optional[EnumT]: 143 def wrap_with_function(code: str, jit_preheat_repeats: int) -> str: 155 def iter_files(dirpath: Union[Path, str], allowed_ext: List[str]) -> Iterator[Tuple[str, str]]: argument [all …]
|
| D | runner_base.py | 47 def load_list(test_root: str, test_list_path: str) -> List[str]: 61 def get_test_id(file: str, start_directory: Path) -> str: 66 def get_test_and_comment_from_line(line: str) -> Tuple[Optional[str], Optional[str]]: 73 def correct_path(root: Path, test_list: str) -> str: 94 def __init__(self, config: Config, name: str) -> None: 193 def _search_duplicates(original: List[str], kind: str) -> None: 204 def create_test(self, test_file: str, flags: List[str], is_ignored: bool) -> Test: 226 def load_tests_from_lists(self, lists: List[str]) -> List[str]: 250 def add_directory(self, directory: str, extension: str, flags: List[str]) -> None: 292 def _search_not_used_ignored(self, found_tests: List[str]) -> None: [all …]
|
| D | test_file_based.py | 38 def __init__(self, test_env: TestEnv, test_path: str, flags: List[str], test_id: str) -> None: 62 def run_one_step(self, name: str, params: Params, result_validator: ResultValidator) \ 114 def run_es2panda(self, flags: List[str], test_abc: str, result_validator: ResultValidator) \ 135 def run_runtime(self, test_an: str, test_abc: str, result_validator: ResultValidator) \ 172 def run_aot(self, test_an: str, test_abcs: List[str], result_validator: ResultValidator) \ 198 def run_ark_quick(self, flags: List[str], test_abc: str, result_validator: ResultValidator) \
|
| D | logger.py | 32 def setup(verbose: VerboseKind, report_root: str) -> logging.Logger: 68 def all(logger: logging.Logger, message: str) -> None: 78 def short(logger: logging.Logger, message: str) -> None: 88 def summary(logger: logging.Logger, message: str) -> None: 98 def default(logger: logging.Logger, message: str) -> None: 108 def exception_and_raise(logger: logging.Logger, message: str,
|
| /arkcompiler/runtime_core/static_core/scripts/clang-tidy/ |
| D | clang_tidy_check.py | 210 def run_clang_tidy(src_path: str, panda_dir: str, build_dir: str, compile_args: str) -> bool: 247 def get_full_path(relative_path: str, location_base: str, panda_dir: str, build_dir: str) -> str: 254 def check_file_list(file_list: list, panda_dir: str, build_dir: str, proc_count: int) -> bool: 290 def need_to_ignore_file(file_path: str, panda_dir: str, build_dir: str) -> bool: 303 def get_file_list(panda_dir: str, build_dir: str, filename_filter: str) -> list: 359 def check_file_list_duplicate(dup_path : str, file_list: list) -> bool: 401 def verify_args(panda_dir: str, build_dir: str) -> str:
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/test262/ |
| D | util_test262.py | 75 …def validate_parse_result(return_code: int, _: str, desc: Dict[str, Any], out: str) -> Tuple[bool,… 89 def generate(self, harness_path: str) -> str: 110 …def prepare_tests(self, src_path: str, dest_path: str, harness_path: str, test262_path: str) -> No… 125 … def create_file(self, input_file: str, output_file: str, harness: str, test262_dir: str) -> None: 150 …def validate_runtime_result(self, return_code: int, std_err: str, desc: Dict[str, Any], out: str) …
|
| D | test_js_test262.py | 28 …def __init__(self, test_env: TestEnv, test_path: str, flags: List[str], with_optimizer: bool, test… 94 def es2panda_result_validator(self, actual_output: str, actual_error: str, 95 … actual_return_code: int, desc: Dict[str, Any], output_path: str) -> bool:
|
| /arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/ |
| D | shell.py | 47 def grep(self, regex: str) -> str: 109 def timed_cmd(cmd: str) -> str: 113 cmd: str, 116 cwd: str = '') -> ShellResult: 119 def run_async(self, cmd: str) -> None: 123 src: Union[str, Path], 124 dst: Union[str, Path]) -> ShellResult: 128 src: Union[str, Path], 129 dst: Union[str, Path]) -> ShellResult: 132 def get_filesize(self, filepath: Union[str, Path]) -> int: [all …]
|
| D | lang.py | 60 def get_import_line(self, lib: str, what: str) -> str: 65 def get_method_call(self, name: str, typ: str) -> str: 72 self, values: Dict[str, Any], custom_values: Dict[str, Any] 77 def parse_state(self, line: str) -> str: 83 def parse_param(self, line: str) -> Optional[Tuple[str, str]]: 91 def parse_func(self, line: str) -> Optional[Tuple[str, str]]: 98 def parse_import(self, line: str) -> Optional[Tuple[str, str]]:
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/options/ |
| D | yaml_document.py | 36 def load(config_path: str) -> Dict[str, Any]: 45 def save(config_path: str, data: Dict[str, Any]) -> None: 49 def load_configs(self, config_paths: Optional[List[str]]) -> None: 63 def get_value_by_path(self, yaml_path: str) -> Optional[Union[int, bool, str, List[str]]]: 76 def merge(self, config_path: str, data: Dict[str, Any]) -> None: 82 def __merge_level(self, config_path: str, parent_key: str, current_data: Dict[str, Any], 83 parent_data: Dict[str, Any]) -> \
|
| D | decorator_value.py | 38 yaml_path: str, 88 def _to_qemu(names: Union[str, List[Tuple[str, bool]], None]) -> Optional[QemuKind]: 108 def _to_test_suites(names: Optional[List[Union[str, TestSuitesFromCliTuple]]]) -> Optional[Set[str]… 127 def _to_bool(cli_value: Union[str, bool, None]) -> Optional[bool]: 135 def _to_int(cli_value: Union[str, int, None]) -> Optional[int]: 143 def _to_processes(cli_value: Union[str, int, None]) -> Optional[int]: 151 def _to_jit_preheats(cli_value: Union[str, int, None], *, prop: str, default_if_empty: int) -> Opti… 167 def _to_time_edges(cli_value: Union[str, List[int], None]) -> Optional[List[int]]: 175 def _to_enum(cli_value: Union[str, EnumT, None], enum_cls: Type[EnumT]) -> Optional[EnumT]: 190 def _to_path(cli_value: Optional[str]) -> Optional[str]: [all …]
|
| /arkcompiler/runtime_core/scripts/ |
| D | gc_pause_stats.py | 30 def sort_one_gc_stat(stats: dict, gc_type: str) -> list: 49 def save_pause_stats(gc_log_path: str, file_name: str, stats: dict) -> None: 67 def get_ms_time(line: str) -> float: 79 def get_full_type(line: str, cause_start: int, cause_len: int) -> str: 89 def get_gc_type(line: str) -> (str, str): 98 def update_stats(stats: dict, gc_type: str, time_value: float): 125 def detect_str(line: str) -> (int, int): 135 def update_group_stats(gc_pause_stats: dict, gc_type: str, full_gc_type: str, time_v: float): 142 def process_one_log(gc_log_path: str, result_file_path: str, all_stats: dict) -> None:
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/astchecker/ |
| D | util_astchecker.py | 42 def __init__(self, name: Optional[str], test_type: UtilASTChecker._TestType, 43 checks: dict, line: int, col: int, error_file: str = '') -> None: 69 def create_test_case(self, name: Optional[str], pattern_type: UtilASTChecker._TestType, 70 … pattern: str, line: int, col: int, error_file: str = '') -> UtilASTChecker._TestCase: 77 def parse_define_statement(self, match: re.Match[str], 78 link_defs_map: Dict[str, Tuple[UtilASTChecker._TestType, str]], argument 79 … link_sources_map: Dict[str, re.Match[str]]) -> Optional[UtilASTChecker._TestCase]: 106 def parse_match_statement(self, match: re.Match[str], 107 link_defs_map: Dict[str, Tuple[UtilASTChecker._TestType, str]], argument 108 … link_sources_map: Dict[str, re.Match[str]]) -> Optional[UtilASTChecker._TestCase]: [all …]
|
| D | runner_astchecker.py | 82 def add_directory(self, directory: str, extension: str, flags: List[str]) -> None: 86 def create_test(self, test_file: str, flags: List[str], is_ignored: bool) -> TestASTChecker:
|
| /arkcompiler/toolchain/build/compile_script/ |
| D | ark.py | 36 def _call(cmd: str): 41 def _write(filename: str, content: str, mode: str): 46 def call_with_output(cmd: str, file: str): 77 def backup(file: str, mode: str): 305 def is_dict_flags_match_arg(dict_to_match: dict, arg_to_match: str) -> bool: 494 …def parse_option(arg_list: List[str], option_name: str, default_value: Optional[Union[str, int]]) \ 504 def __is_option_value_int(value: Optional[Union[str, int]]) -> Tuple[bool, Optional[int]]: 511 def __is_option_value_str(value: Optional[Union[str, int]]) -> Tuple[bool, Optional[str]]: 518 def __get_option_value(option_name: str, value: Optional[Union[str, int]]) -> Union[str, int]: 529 def __parse_option_with_space(arg_list: List[str], option_name: str) \ [all …]
|
| /arkcompiler/ets_runtime/test/perform/string/ |
| D | string.js | 17 … const str = "The quick brown fox jumps over the lazy dog. If the dog reacted, was it really lazy?" constant 30 const str = 'Apples are round, and apples are juicy.'; constant 54 const str = "Hello World. How are you doing?" constant 65 const str = "The quick brown fox jumps over the lazy dog." constant 76 const str = "Harry Trump ;Fred Barney; Helen Rigby ; Bill Abel ;Chris Hand " constant 88 … const str = "The quick brown fox jumps over the lazy dog. If the dog barked, was it really lazy?" constant 100 … const str = "The quick brown fox jumps over the lazy dog. If the dog barked, was it really lazy?" constant 112 … const str = "The quick brown fox jumps over the lazy dog. If the dog barked, was it really lazy?" constant 123 const str = "Hello World. How are you doing?" constant 134 const str = "The quick brown fox jumps over the lazy dog." constant [all …]
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ets_templates/ |
| D | template.py | 45 def __init__(self, test_path: Path, params: Dict[str, Any]) -> None: 74 def generate_test(self, test: str, fullname: str) -> str: 86 def __get_in_out_content(self, text: str, meta_start: str, meta_end: str) -> Tuple[str, str]: 94 def __get_meta(self, text: str) -> Meta: 99 def __replace_symbols(self, text: str) -> str: 105 def __parse_yaml(self, text: str) -> Dict[str, Any]:
|
| /arkcompiler/runtime_core/static_core/scripts/code_style/ |
| D | doxygen_style_check.py | 48 def is_doxygen_comment(s: str) -> bool: 68 def check_keywords(src_path: str, splitted_lines: list, line_num: int) -> bool: 83 def check_javadoc(src_path: str, strings: list) -> bool: 111 def check_additional_slashes(src_path: str, strings: list) -> bool: 150 def check_less_than_slashes(src_path: str, strings: list) -> bool: 172 def check_all(src_path: str, fine_patterns_found: list, wrong_patterns_number: int) -> bool: 180 def run_doxygen_check(src_path: str, msg: str) -> bool:
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/utils/ |
| D | exceptions.py | 19 def __init__(self, filepath: str, message: str) -> None: 25 def __init__(self, filepath: str, message: str) -> None: 32 def __init__(self, filepath: str, exception: Exception) -> None: 39 def __init__(self, msg: str) -> None:
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | json_parser_test.cpp | 24 auto str = R"( variable 45 auto str = R"( variable 90 auto str = R"( variable 148 auto str = R"( variable 183 auto str = R"( variable
|
| /arkcompiler/toolchain/websocket/ |
| D | string_utils.h | 25 inline void TrimLeft(std::string &str) in TrimLeft() 30 inline void TrimRight(std::string &str) in TrimRight() 36 inline void Trim(std::string &str) in Trim() 42 inline void ToLowerCase(std::string& str) in ToLowerCase()
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/hermes/ |
| D | util_hermes.py | 76 def process_copy(self, src_path: str, dst_path: str) -> None: 87 def create_file(self, src_file: str, dest_file: str) -> None: 99 def run_filecheck(self, test_file: str, actual_output: str) -> bool:
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/reports/ |
| D | report.py | 33 def __init__(self, test_id: str, test_env: TestEnv) -> None: 80 def convert_to_array(output: str) -> List[str]: 95 def __get_good_line(line: str) -> str: 99 def __get_failed_line(line: str) -> str: 135 def __make_output_diff_html(self, expected: str, actual: str) -> Tuple[List[str], List[str]]: 165 def __get_md_good_line(expected: str, actual: str) -> str: 169 def __get_md_failed_line(expected: str, actual: str) -> str: 208 def __make_output_diff_md(self, expected: str, actual: str) -> List[str]:
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/parser/ |
| D | runner_js_parser.py | 86 def add_directory(self, directory: str, extension: str, flags: List[str]) -> None: 90 def create_test(self, test_file: str, flags: List[str], is_ignored: bool) -> TestJSParser:
|