/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/ |
D | chapters.py | 39 def __init__(self, chapters_name: str) -> None: 45 def __init__(self, item: str) -> None: 54 def __init__(self, chapters_file: str): 69 def __check_cycle(self, chapter: Chapter, seen_chapters: List[str]) -> None: 87 def __parse(chapters_file: str) -> Dict[str, Chapter]: 110 def __parse_item(includes: List[str], excludes: List[str], yaml_item: Union[str, dict]) -> None: 124 …def __parse_chapter(name: str, yaml_items: Sequence[Union[str, Dict[str, str]]], chapters_file: st… argument 138 …def filter_by_chapter(self, chapter_name: str, base_folder: str, files: List[str], extension: str)… 159 def __filter_by_mask(mask: str, files: List[str], extension: str) -> List[str]:
|
D | utils.py | 46 def download(name: str, git_url: str, revision: str, target_path: str, show_progress: bool = False)… 75 def generate(name: str, url: str, revision: str, generated_root: Path, *, 76 … stamp_name: Optional[str] = None, test_subdir: str = "test", show_progress: bool = False, 108 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 | 49 def load_list(test_root: str, test_list_path: str) -> List[str]: 63 def get_test_id(file: str, start_directory: Path) -> str: 68 def get_test_and_comment_from_line(line: str) -> Tuple[Optional[str], Optional[str]]: 75 def correct_path(root: Path, test_list: str) -> str: 97 def __init__(self, config: Config, name: str) -> None: 195 def load_tests_from_lists(self, lists: List[str]) -> List[str]: 218 def _search_duplicates(original: List[str], kind: str) -> None: 230 def add_directory(self, directory: str, extension: str, flags: List[str]) -> None: 262 def __load_test_files(self, directory: str, extension: str) -> List[str]: 282 def __filter_by_chapters(self, base_folder: str, files: List[str], extension: str) -> List[str]: [all …]
|
D | test_file_based.py | 40 def __init__(self, test_env: TestEnv, test_path: str, flags: List[str], test_id: str) -> None: 63 def run_one_step(self, name: str, params: Params, result_validator: ResultValidator) \ 117 def run_es2panda(self, flags: List[str], test_abc: str, result_validator: ResultValidator) \ 138 def run_runtime(self, test_an: str, test_abc: str, result_validator: ResultValidator) \ 175 def run_aot(self, test_an: str, test_abc: str, result_validator: ResultValidator) \ 199 def run_ark_quick(self, flags: List[str], test_abc: str, result_validator: ResultValidator) \
|
D | runner_file_based.py | 70 …def __init__(self, runner_name: str, build_dir: str, config: Config, conf_kind: ConfigurationKind)… 104 def __get_binary_path(self, binary: str) -> str: 108 def check_path(*path_parts: str) -> str: 116 …def __init__(self, config: Config, name: str, panda_binaries: Type[PandaBinaries] = PandaBinaries)… 204 def generate_quick_stdlib(self, stdlib_abc: str) -> str: 312 def collect_excluded_test_lists(self, extra_list: Optional[List[str]] = None, 313 test_name: Optional[str] = None) -> None: 316 def collect_ignored_test_lists(self, extra_list: Optional[List[str]] = None, 317 test_name: Optional[str] = None) -> None: 322 kind: str, extra_lists: Optional[List[str]] = None, [all …]
|
D | logger.py | 35 def setup(verbose: VerboseKind, report_root: str) -> logging.Logger: 71 def all(logger: logging.Logger, message: str) -> None: 81 def short(logger: logging.Logger, message: str) -> None: 91 def summary(logger: logging.Logger, message: str) -> None: 101 def default(logger: logging.Logger, message: str) -> None: 111 def exception_and_raise(logger: logging.Logger, message: str,
|
/arkcompiler/runtime_core/static_core/scripts/clang-tidy/ |
D | clang_tidy_check.py | 208 def run_clang_tidy(src_path: str, panda_dir: str, build_dir: str, compile_args: str) -> bool: 244 def get_full_path(relative_path: str, location_base: str, panda_dir: str, build_dir: str) -> str: 250 def check_file_list(file_list: list, panda_dir: str, build_dir: str, proc_count: int) -> bool: 286 def need_to_ignore_file(file_path: str, panda_dir: str, build_dir: str) -> bool: 299 def get_file_list(panda_dir: str, build_dir: str, filename_filter: str) -> list: 353 def check_file_list_duplicate(dup_path : str, file_list: list) -> bool: 393 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 | 49 def generate(self, harness_path: str) -> str: 67 …def prepare_tests(self, src_path: str, dest_path: str, harness_path: str, test262_path: str) -> No… 82 … def create_file(self, input_file: str, output_file: str, harness: str, test262_dir: str) -> None: 132 …def validate_parse_result(return_code: int, _: str, desc: Dict[str, Any], out: str) -> Tuple[bool,… 146 …def validate_runtime_result(self, return_code: int, std_err: str, desc: Dict[str, Any], out: str) …
|
D | test_js_test262.py | 31 …def __init__(self, test_env: TestEnv, test_path: str, flags: List[str], with_optimizer: bool, test… 97 def es2panda_result_validator(self, actual_output: str, actual_error: str, 98 … actual_return_code: int, desc: Dict[str, Any], output_path: str) -> bool:
|
/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/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 | 48 def __init__(self, test_path: Path, params: Dict[str, Any]) -> None: 77 def generate_test(self, test: str, fullname: str) -> str: 89 def __get_in_out_content(self, text: str, meta_start: str, meta_end: str) -> Tuple[str, str]: 97 def __get_meta(self, text: str) -> Meta: 102 def __replace_symbols(self, text: str) -> str: 108 def __parse_yaml(self, text: str) -> Dict[str, Any]:
|
/arkcompiler/toolchain/build/compile_script/ |
D | ark.py | 35 def _call(cmd: str): 40 def _write(filename: str, content: str, mode: str): 45 def call_with_output(cmd: str, file: str): 265 def is_dict_flags_match_arg(dict_to_match: dict, arg_to_match: str) -> bool: 271 …def which_dict_flags_match_arg(self, dict_including_dicts_to_match: dict, arg_to_match: str) -> st… 277 def dict_in_os_cpu_mode_match_arg(self, arg: str) -> [bool, str, str]: 300 …def get_help_msg_of_dict(self, dict_in: dict, indentation_str_current: str, indentation_str_per_le… 344 def clean(self, out_path: str): 356 def build_for_gn_target(self, out_path: str, gn_args: list, arg_list: list, log_file_name: str): 391 def build_for_test262(self, out_path, gn_args: list, arg_list: list, log_file_name: str, [all …]
|
/arkcompiler/runtime_core/static_core/scripts/code_style/ |
D | doxygen_style_check.py | 46 def is_doxygen_comment(s: str) -> bool: 64 def check_keywords(src_path: str, splitted_lines: list, line_num: int) -> bool: 78 def check_javadoc(src_path: str, strings: list) -> bool: 105 def check_additional_slashes(src_path: str, strings: list) -> bool: 143 def check_less_than_slashes(src_path: str, strings: list) -> bool: 164 def check_all(src_path: str, fine_patterns_found: list, wrong_patterns_number: int) -> bool: 171 def run_doxygen_check(src_path: str, msg: str) -> bool:
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/options/ |
D | decorator_value.py | 41 yaml_path: str, 91 def _to_qemu(names: Union[str, List[Tuple[str, bool]], None]) -> Optional[QemuKind]: 111 def _to_test_suites(names: Optional[List[Union[str, TestSuitesFromCliTuple]]]) -> Optional[Set[str]… 130 def _to_bool(cli_value: Union[str, bool, None]) -> Optional[bool]: 138 def _to_int(cli_value: Union[str, int, None]) -> Optional[int]: 146 def _to_processes(cli_value: Union[str, int, None]) -> Optional[int]: 154 def _to_jit_preheats(cli_value: Union[str, int, None], *, prop: str, default_if_empty: int) -> Opti… 170 def _to_time_edges(cli_value: Union[str, List[int], None]) -> Optional[List[int]]: 178 def _to_enum(cli_value: Union[str, EnumT, None], enum_cls: Type[EnumT]) -> Optional[EnumT]: 193 def _to_path(cli_value: Optional[str]) -> Optional[str]: [all …]
|
D | yaml_document.py | 40 def load(config_path: Optional[str]) -> None: 52 def save(config_path: str, data: Dict[str, Any]) -> None: 57 def get_value_by_path(yaml_path: str) -> Optional[Union[int, bool, str, List[str]]]:
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/utils/ |
D | exceptions.py | 22 def __init__(self, filepath: str, message: str) -> None: 28 def __init__(self, filepath: str, message: str) -> None: 35 def __init__(self, filepath: str, exception: Exception) -> None: 42 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/runtime_core/static_core/tests/tests-u-runner/runner/reports/ |
D | report.py | 37 def __init__(self, test_id: str, test_env: TestEnv) -> None: 84 def convert_to_array(output: str) -> List[str]: 131 def __make_output_diff_html(self, expected: str, actual: str) -> Tuple[List[str], List[str]]: 159 def __get_good_line(line: str) -> str: 163 def __get_failed_line(line: str) -> str: 200 def __make_output_diff_md(self, expected: str, actual: str) -> List[str]: 225 def __get_md_good_line(expected: str, actual: str) -> str: 229 def __get_md_failed_line(expected: str, actual: str) -> str:
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/scripts/formatChecker/utils/ |
D | exceptions.py | 22 def __init__(self, filepath: str, message: str) -> None: 28 def __init__(self, filepath: str, message: str) -> None: 35 def __init__(self, filepath: str, exception: Exception) -> None:
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/hermes/ |
D | util_hermes.py | 75 def process_copy(self, src_path: str, dst_path: str) -> None: 86 def create_file(self, src_file: str, dest_file: str) -> None: 98 def run_filecheck(self, test_file: str, actual_output: str) -> bool:
|
D | test_js_hermes.py | 30 def __init__(self, test_env: TestEnv, test_path: str, flags: List[str], test_id: str) -> None: 83 def _validate_compiler(return_code: int, output_path: str) -> bool: 86 def ark_validate_result(self, actual_output: str, _: Any, return_code: int) -> bool:
|
/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/parser/ |
D | runner_js_parser.py | 79 def add_directory(self, directory: str, extension: str, flags: List[str]) -> None: 83 def create_test(self, test_file: str, flags: List[str], is_ignored: bool) -> TestJSParser:
|
D | test_js_parser.py | 34 def __init__(self, test_env: TestEnv, test_path: str, flags: List[str], test_id: str) -> None: 60 def update_expected_files(self, output: str) -> None: 63 … def es2panda_result_validator(self, actual_output: str, _: Any, actual_return_code: int) -> bool:
|