Home
last modified time | relevance | path

Searched defs:str (Results 1 – 25 of 1045) sorted by relevance

12345678910>>...42

/arkcompiler/ets_runtime/script/
Drun_ark_executable.py33 def get_env_path_from_rsp(script_file: str) -> list:
124 def generate_stub_code_comment(out_str:str):
137 def check_expect_output(cmd: str, returncode: str, out_str: str, err_str: str, expect_output: str):
151 def check_expect_sub_output(cmd: str, returncode: str, out_str: str, err_str: str, expect_sub_outpu…
163 def check_expect_sub_error(cmd: str, returncode: str, out_str: str, err_str: str, expect_sub_error:…
179 def check_expect_file(cmd: str, returncode: str, out_str: str, err_str: str, expect_file: str):
227 def compare_line_by_line(expect_output:str, got_output:str):
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/
Dchapters.py36 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:
Dutils.py43 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, *,
73stamp_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
134 def purify(line: str) -> str:
138 def enum_from_str(item_name: str, enum_cls: Type[EnumT]) -> Optional[EnumT]:
145 def wrap_with_function(code: str, jit_preheat_repeats: int) -> str:
157 def iter_files(dirpath: Union[Path, str], allowed_ext: List[str]) -> Iterator[Tuple[str, str]]: argument
[all …]
Drunner_base.py49 def load_test_from_list(test_root: str, line: str, directory: Optional[str] = None) -> Optional[str…
61 def load_list(test_root: str, test_list_path: str, directory: Optional[str] = None) -> List[str]:
75 def get_test_id(file: str, start_directory: Path) -> str:
80 def get_test_and_comment_from_line(line: str) -> Tuple[Optional[str], Optional[str]]:
87 def correct_path(root: Path, test_list: str) -> str:
108 def __init__(self, config: Config, name: str) -> None:
205 def _search_duplicates(original: List[str], kind: str) -> None:
215 def recalculate_explicit_list(self, explicit_list: str) -> Optional[str]:
221 def create_test(self, test_file: str, flags: List[str], is_ignored: bool) -> Test:
243 def load_tests_from_lists(self, lists: List[str], directory: Optional[str] = None) -> List[str]:
[all …]
/arkcompiler/ets_frontend/ets2panda/public/headers_parser/
Dtext_tools.py27 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 find_first_of_characters(characters: str, data: str, pos: int = 0, pos_end: int = MAX_LEN) -> i…
52 def rfind_first_of_characters(characters: str, data: str, pos: int, pos_end: int = 0) -> int:
63 def find_scope_borders(data: str, start: int = 0, opening: str = "{") -> Tuple[int, int]:
103 def smart_split_by(data: str, delim: str = ",") -> list:
124 def smart_find_first_of_characters(characters: str, data: str, pos: int) -> int:
147 def check_cpp_name(data: str) -> bool:
Dparse_arguments.py38 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]:
Dparse_class.py27 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…
66 def parse_template_prefix(data: str, start: int) -> Tuple[int, str]:
Dparse_enum.py28 def parse_enum_union(data: str) -> list:
40 def is_union_value(data: str) -> bool:
56 def parse_enum_class_body(data: str) -> dict:
101 def parse_enum_class(data: str, start: int = 0) -> Tuple[int, Dict]:
143 def get_name_of_enum_value(data: str) -> str:
Dlog_tools.py38 def init_log(lib_gen_folder: str) -> None:
44 def info_log(msg: str) -> None:
49 def debug_log(msg: str) -> None:
54 def warning_log(msg: str) -> None:
59 def parsing_failed_msg(file: str) -> None:
65 def error_log(msg: str) -> None:
/arkcompiler/runtime_core/static_core/scripts/clang-tidy/
Dclang_tidy_check.py216 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:
412 def verify_args(panda_dir: str, build_dir: str) -> str:
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/test262/
Dutil_test262.py75 …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) …
Dtest_js_test262.py28 …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/
Dshell.py47 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 …]
Dlang.py60 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/
Dyaml_document.py36 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]) -> \
Ddecorator_value.py38 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/
Dgc_pause_stats.py30 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/plugins/ets/tests/debugger/src/arkdb/compiler_verification/
Dbytecode.py41 …_(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/ets_runtime/test/perform/string/
Dstring.js17 … 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/
Dtemplate.py43 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/toolchain/build/compile_script/
Dark.py36 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):
313 def is_dict_flags_match_arg(dict_to_match: dict, arg_to_match: str) -> bool:
341 enable_litecg, args_to_cmd, timeout, ignore_list: Optional[str] = None):
590 …def parse_option(arg_list: List[str], option_name: str, default_value: Optional[Union[str, int]]) \
600 def parse_bool_option(arg_list: List[str], option_name: str, default_value: bool) \
612 def __is_option_value_int(value: Optional[Union[str, int]]) -> Tuple[bool, Optional[int]]:
619 def __is_option_value_str(value: Optional[Union[str, int]]) -> Tuple[bool, Optional[str]]:
[all …]
/arkcompiler/runtime_core/static_core/scripts/code_style/
Ddoxygen_style_check.py48 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/plugins/ets/tests/debugger/src/arkdb/
Dlayouts.py60 scopes: Optional[Set[str]] = None,
61 skip_scopes: Sequence[str] = (),
93 scopes: Optional[Set[str]] = None,
94 skip_scopes: Sequence[str] = (),
104 scopes: Optional[Set[str]] = None,
105 skip_scopes: Sequence[str] = (),
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/utils/
Dexceptions.py19 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/static_core/tests/tests-u-runner/runner/plugins/astchecker/
Dutil_astchecker.py54 … def __init__(self, name: Optional[str], pattern: UtilASTChecker._Pattern, checks: dict) -> None:
97 …def create_test_case(name: Optional[str], pattern: UtilASTChecker._Pattern) -> UtilASTChecker._Tes…
130 def run_error_test(test_file: str, test: _TestCase, actual_errors: set) -> bool:
140 def get_actual_errors(error: str) -> set:
158 def parse_define_statement(self, match: re.Match[str],
159 link_defs_map: Dict[str, Tuple[UtilASTChecker._TestType, str]], argument
160link_sources_map: Dict[str, re.Match[str]]) -> Optional[UtilASTChecker._TestCase]:
187 def parse_match_statement(self, match: re.Match[str],
188 link_defs_map: Dict[str, Tuple[UtilASTChecker._TestType, str]], argument
189link_sources_map: Dict[str, re.Match[str]]) -> Optional[UtilASTChecker._TestCase]:
[all …]

12345678910>>...42