| /arkcompiler/ets_runtime/script/ |
| D | run_ark_executable.py | 33 def get_env_path_from_rsp(script_file: str) -> list: 133 def generate_stub_code_comment(out_str:str): 146 …ef check_expect_output(cmd: str, returncode: str, out_str: str, err_str: str, expect_output: str, … 160 …ck_expect_sub_output(cmd: str, returncode: str, out_str: str, err_str: str, expect_sub_output: str… 172 …eck_expect_sub_error(cmd: str, returncode: str, out_str: str, err_str: str, expect_sub_error: str,… 188 def check_expect_file(cmd: str, returncode: str, out_str: str, err_str: str, expect_file: str, star… 240 def compare_line_by_line(expect_output:str, got_output:str):
|
| /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 118 def read_file(file_path: Union[Path, str]) -> str: argument 124 def write_2_file(file_path: Union[Path, str], content: str) -> None: argument 135 def opener(path_name: Union[str, Path], flags: int) -> int: 147 def purify(line: str) -> str: 151 def enum_from_str(item_name: str, enum_cls: Type[EnumT]) -> Optional[EnumT]: 158 def wrap_with_function(code: str, jit_preheat_repeats: int) -> str: [all …]
|
| D | runner_base.py | 50 def load_test_from_list(test_root: str, line: str, directory: Optional[str] = None) -> Optional[str… 62 def load_list(test_root: str, test_list_path: str, directory: Optional[str] = None) -> List[str]: 76 def get_test_id(file: str, start_directory: Path) -> str: 81 def get_test_and_comment_from_line(line: str) -> Tuple[Optional[str], Optional[str]]: 88 def correct_path(root: Path, test_list: str) -> str: 109 def __init__(self, config: Config, name: str) -> None: 206 def _search_duplicates(original: List[str], kind: str) -> None: 216 def recalculate_explicit_list(self, explicit_list: str) -> Optional[str]: 222 def create_test(self, test_file: str, flags: List[str], is_ignored: bool) -> Test: 248 def load_tests_from_lists(self, lists: List[str], directory: Optional[str] = None) -> List[str]: [all …]
|
| /arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/ |
| D | shell.py | 48 def grep(self, regex: str) -> str: 59 def replace_out(self, regex: re.Pattern, repl: str = '') -> None: 119 def timed_cmd(cmd: str) -> str: 123 cmd: str, 126 cwd: str = '') -> ShellResult: 129 def run_async(self, cmd: str) -> None: 132 def run_syslog(self, cmd: str, 133 finished_marker: str, 136 cwd: str = '', 138 tag: str = 'VMB') -> ShellResult: [all …]
|
| /arkcompiler/ets_frontend/ets2panda/public/headers_parser/ |
| D | text_tools.py | 27 def find_first_not_restricted_character(restricted: str, data: str, pos: int = 0, pos_end: int = MA… 34 def rfind_first_not_restricted_character(restricted: str, data: str, pos: int, pos_end: int = 0) ->… 45 def skip_rstring(data: str, pos: int = 0, pos_end: int = MAX_LEN) -> int: 66 def skip_string(data: str, pos: int = 0, pos_end: int = MAX_LEN) -> int: 83 def find_first_of_characters(characters: str, data: str, pos: int = 0, pos_end: int = MAX_LEN) -> i… 96 def rfind_first_of_characters(characters: str, data: str, pos: int, pos_end: int = 0) -> int: 107 def is_operator(data: str, current_pos: int) -> bool: 113 def find_scope_borders(data: str, start: int = 0, opening_bracket: str = "{") -> Tuple[int, int]: 156 def smart_split_by(data: str, delim: str = ",") -> list: 177 def smart_find_first_of_characters(characters: str, data: str, pos: int) -> int: [all …]
|
| D | parse_arguments.py | 38 def parse_type(data: str) -> dict: 94 def extract_type_name(data: str, res: Dict[str, Any]) -> int: 129 def parse_argument(arg: str, mode: str = "args") -> Dict: 174 def parse_arguments(data: str, start: int = 0, mode: str = "args") -> Tuple[int, List]:
|
| D | parse_class.py | 27 def parse_friend_class(data: str, start: int) -> Tuple[int, str]: 34 def parse_class(data: str, start: int = 0, namespace: str = "", parent_class_name: str = "") -> Tup… 63 def extract_class_name(data: str, pos: int) -> str: 77 def parse_template_prefix(data: str, start: int) -> Tuple[int, str]:
|
| /arkcompiler/runtime_core/static_core/cmake/interceptor/ |
| D | parse_args.py | 40 def is_script_file(file_path: str) -> bool: 44 def is_script_call(command_part: str) -> bool: 49 def is_cmake_copy_command(command_parts: List[str]) -> bool: 56 def is_target_binary(command_part: str) -> bool: 82 def extract_target_binary_name(command_part: str) -> Optional[str]: 104 def find_binary_in_command(command_parts: List[str]) -> Optional[str]: 112 def should_skip_command_processing(command_parts: List[str]) -> bool: 117 def instrument_for_lcov_coverage(command_parts: List[str]) -> List[str]: 134 def instrument_for_llvm_coverage(command_parts: List[str]) -> List[str]: 159 def process_command_section(command_parts: List[str], tool: str) -> List[str]: [all …]
|
| /arkcompiler/runtime_core/static_core/scripts/clang-tidy/ |
| D | clang_tidy_check.py | 216 def run_clang_tidy(src_path: str, config_file_path: str, build_dir: str, header_filter: str, compil… 253 def get_full_path(relative_path: str, location_base: str, panda_dir: str, build_dir: str) -> str: 260 def check_file_list(file_list: list, panda_dir: str, build_dir: str, header_filter: str, proc_count… 296 def need_to_ignore_file(file_path: str, panda_dir: str, build_dir: str) -> bool: 309 def get_file_list(panda_dir: str, build_dir: str, filename_filter: str) -> list: 370 def check_file_list_duplicate(dup_path : str, file_list: list) -> bool: 408 def verify_args(panda_dir: str, build_dir: str) -> str:
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner-2/runner/ |
| D | utils.py | 59 def download(name: str, *, git_url: str, revision: str, download_root: Path, target_path: Path, 89 def download_and_generate(name: str, url: str, revision: str, download_root: Path, generated_root: … 90 … stamp_name: str | None = None, test_subdir: str = "test", show_progress: bool = False, 147 def read_file(file_path: Path | str) -> str: 153 def write_2_file(file_path: Path | str, content: str) -> None: 162 def purify(line: str) -> str: 166 def get_all_enum_values(enum_cls: type[EnumT], *, delim: str = ", ", quotes: str = "'") -> str: 173 def wrap_with_function(code: str, jit_preheat_repeats: int) -> str: 185 def iter_files(dirpath: Path | str, allowed_ext: list[str]) -> Iterator[tuple[str, str]]: 195 def is_type_of(value: Any, type_: str) -> bool: # type: ignore[explicit-any] [all …]
|
| /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: 151 …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/tests-u-runner-2/runner/options/ |
| D | step.py | 60 def __init__(self, name: str, step_body: dict[str, Any]): # type: ignore[explicit-any] 89 def __get_int_property(step_body: dict[str, Any], # type: ignore[explicit-any] 90 name: str, default: int | None = None) -> int: 98 def __get_bool_property(step_body: dict[str, Any], # type: ignore[explicit-any] 99 name: str, default: bool | None = None) -> bool: 107 def __get_list_property(step_body: dict[str, Any], name: str, # type: ignore[explicit-any] 116 def __get_dict_property(step_body: dict[str, Any], name: str, # type: ignore[explicit-any] 117 default: dict[str, Any] | None = None) -> dict[str, str]: 125 def __get_str_property(step_body: dict[str, Any], name: str, # type: ignore[explicit-any] 134 …def __get_path_property(step_body: dict[str, Any], name: str) -> Path | None: # type: ignore[expl… [all …]
|
| /arkcompiler/runtime_core/taihe/compiler/taihe/codegen/ani/ |
| D | writer.py | 30 relative_path: str, 32 indent_unit: str = DEFAULT_INDENT, 60 module_name: str, 61 import_name: str, 67 module_name: str, 68 import_name: str, 74 module_name: str, 75 decl_name: str, 84 import_name: str, 85 new_pair: tuple[str, str | None],
|
| D | analyses.py | 69 msg: str, 78 pattern: str, 144 def __init__(self, hint: str): 252 def __init__(self, name: str, parent: "Namespace | Path") -> None: 277 path: list[str], 292 sts_name: str, 569 def call_native_with(self, sts_args: list[str], this: str = "this") -> str: 754 def call_native_with(self, sts_args: list[str], this: str = "this") -> str: 1006 env: str, 1007 ani_value: str, [all …]
|
| D | gen_sts.py | 68 def gen_module_file(self, module: str, ns: Namespace): 696 sts_method_name: str, 697 sts_params: list[str], 698 sts_return_ty_name: str, 708 sts_promise_name: str, 709 sts_params: list[str], 710 sts_return_ty_name: str, 720 sts_async_name: str, 721 sts_params: list[str], 722 sts_return_ty_name: str, [all …]
|
| /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]) -> \
|
| /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/plugins/ets/tests/debugger/src/arkdb/compiler_verification/ |
| D | bytecode.py | 41 …_(self, expression: ScriptFile, expected: ScriptFile, base_module_name: str, eval_method_name: str… 104 bytecode: list[str], 105 function_decl_pattern: str, 106 prefixes: Iterable[str], 125 def _remove_prefix(line: str, prefixes: Iterable[str]) -> str:
|
| /arkcompiler/runtime_core/static_core/tools/ark_js_napi_cli/tests/ |
| D | test_runner.py | 34 def __init__(self, build_dir: str, test_dir: str): 39 def get_ts_entry_point(file: str) -> str: 44 def get_abc(self, file: str, suffix: str) -> str: 76 def check_command_result(command: List[str], change_dir: Optional[str] = None) -> bool: 99 def compile_ts_cmd(config: PathConfig, file: str) -> bool: 111 def compile_sts_cmd(config: PathConfig, file: str) -> bool: 141 def run_test(config: PathConfig, ts_test_path: str) -> bool:
|
| /arkcompiler/runtime_core/static_core/scripts/ |
| D | compiler_bisect.py | 106 def __init__(self, args: List[str]): 112 compiled_methods: Optional[Iterable[str]], 113 noinline_methods: Iterable[str], 114 passes: Optional[Iterable[str]], 166 compiled_methods: Optional[Iterable[str]], 167 noinline_methods: Iterable[str], 168 passes: Optional[Iterable[str]], 217 def _is_shell_script(self, path: str) -> bool: 226 def _prepare_command(self, options: List[str]) -> List[str]: 242 options_str: str, [all …]
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ets_templates/ |
| D | template.py | 43 def __init__(self, test_path: Path, params: Dict[str, Any]) -> None: 60 def __replace_symbols(text: str) -> str: 67 def __get_in_out_content(text: str, meta_start: str, meta_end: str) -> Tuple[str, str]: 88 def generate_test(self, test: str, fullname: str) -> str: 100 def __get_meta(self, text: str) -> Meta: 105 def __parse_yaml(self, text: str) -> Dict[str, Any]:
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner-2/runner/extensions/generators/ets_cts/ |
| D | template.py | 47 def __init__(self, test_path: Path, params: dict[str, list]) -> None: 64 def __replace_symbols(text: str) -> str: 71 def __get_in_out_content(text: str, meta_start: str, meta_end: str) -> tuple[str, str]: 92 def generate_test(self, test: str, fullname: str) -> str: 104 def __get_meta(self, text: str) -> Meta: 109 def __parse_yaml(self, text: str) -> dict[str, str]:
|