Home
last modified time | relevance | path

Searched refs:text (Results 1 - 25 of 86) sorted by relevance

1234

/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ets_templates/
H A Dtemplate.py47 self.text = read_file(test_path)
54 self.__copyright, out_content = self.__get_in_out_content(self.text, META_START_COMMENT, META_END_COMMENT)
55 self.text = out_content.strip()
59 return META_COPYRIGHT not in self.text
63 template = self.__jinja_env.from_string(self.text)
86 def __get_in_out_content(self, text: str, meta_start: str, meta_end: str) -> Tuple[str, str]:
87 start, end = text.find(meta_start), text.find(meta_end)
90 inside_content = text[start + len(meta_start):end]
91 outside_content = text[
[all...]
/arkcompiler/runtime_core/compiler/tests/js/
H A DregallocTryTest.js40 var text = ""; variable
43 text += car[i] + x + y;
48 var text = "";
50 text = "number is invalid";
52 text = (x < 18) ? "young" : "old";
59 let text = "";
61 text += x;
64 text += "The number is " + i;
68 text += "The number is " + i;
H A DstyleTryCatch.js40 var text = ""; variable
43 text += car[i] + x + y;
76 var text = "";
79 text += car[i] + x + y;
82 text += car[i] + x + y;
85 text += car[i] + x + y;
H A DtestTryCatch.js40 var text = ""; variable
43 text += car[i] + x + y;
/arkcompiler/runtime_core/static_core/verification/config/
H A Dconfig_load.cpp36 bool ProcessConfigFile(ark::verifier::Config *cfg, const char *text) in ProcessConfigFile() argument
47 ark::verifier::config::ParseConfig(text, section) && ark::verifier::config::ProcessConfig(cfg, section); in ProcessConfigFile()
80 char *text = new char[1 + *size]; in LoadConfig() local
81 memset_s(text, 1 + *size, 0x00, 1 + *size); in LoadConfig()
82 if (!file.ReadAll(text, *size)) { in LoadConfig()
84 delete[] text; in LoadConfig()
87 text[*size] = 0; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in LoadConfig()
89 result = ProcessConfigFile(cfg, text); in LoadConfig()
90 delete[] text; in LoadConfig()
/arkcompiler/ets_frontend/ets2panda/test/unit/public/
H A Dast_verifier_identifier_has_variable_test.cpp33 char const *text = R"( in TEST_F() local
41 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
59 char const *text = R"( in TEST_F() local
74 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
92 char const *text = R"( in TEST_F() local
99 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
117 char const *text = R"( in TEST_F() local
125 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
143 char const *text = R"( in TEST_F() local
151 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dumm in TEST_F()
169 char const *text = R"( TEST_F() local
[all...]
H A Dast_verifier_check_scope_declaration_test.cpp31 char const *text = R"( in TEST_F() local
37 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
57 char const *text = R"( in TEST_F() local
63 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
83 char const *text = R"( in TEST_F() local
93 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
113 char const *text = R"( in TEST_F() local
119 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
139 char const *text = R"( in TEST_F() local
151 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dumm in TEST_F()
[all...]
H A Dast_verifier_variable_has_scope_test.cpp30 char const *text = R"( in TEST_F() local
40 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
58 char const *text = R"( in TEST_F() local
79 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
97 char const *text = R"( in TEST_F() local
108 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
126 char const *text = R"( in TEST_F() local
145 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.ets"); in TEST_F()
163 char const *text = R"( in TEST_F() local
179 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dumm in TEST_F()
[all...]
H A Dast_verifier_getter_setter_test.cpp33 char const *text = in TEST_F() local
47 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.ets"); in TEST_F()
68 char const *text = in TEST_F() local
77 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.ets"); in TEST_F()
98 char const *text = in TEST_F() local
106 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.ets"); in TEST_F()
H A Dast_verifier_variable_has_enclosing_scope_test.cpp33 char const *text = R"( in TEST_F() local
43 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
61 char const *text = R"( in TEST_F() local
72 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
90 char const *text = R"( in TEST_F() local
98 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
H A Dast_verifier_private_access_negative_test_1_4.cpp27 char const *text = R"( in TEST_F() local
35 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
64 char const *text = R"( in TEST_F() local
73 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
102 char const *text = R"( in TEST_F() local
112 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
141 char const *text = R"( in TEST_F() local
151 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
H A Dast_verifier_getter_setter_neg_test.cpp36 char const *text = in TEST_F() local
50 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
83 char const *text = in TEST_F() local
97 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
130 char const *text = in TEST_F() local
144 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
180 char const *text = in TEST_F() local
194 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.ets"); in TEST_F()
233 char const *text = in TEST_F() local
247 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dumm in TEST_F()
281 char const *text = TEST_F() local
[all...]
H A Dast_verifier_every_child_has_valid_parent_test.cpp32 char const *text = R"( in TEST_F() local
38 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
55 char const *text = R"( in TEST_F() local
63 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
H A Dast_verifier_protected_access_negative_test_4_6.cpp27 char const *text = R"( in TEST_F() local
39 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
79 char const *text = R"( in TEST_F() local
92 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
132 char const *text = R"( in TEST_F() local
145 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
H A Dast_verifier_private_access_negative_test_5_7.cpp27 char const *text = R"( in TEST_F() local
39 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
79 char const *text = R"( in TEST_F() local
92 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
132 char const *text = R"( in TEST_F() local
145 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
H A Dast_verifier_protected_access_negative_test_1_3.cpp27 char const *text = R"( in TEST_F() local
36 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
65 char const *text = R"( in TEST_F() local
75 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
104 char const *text = R"( in TEST_F() local
114 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
H A Dast_verifier_reference_typeannotation_test.cpp32 char const *text = R"( in TEST_F() local
37 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
69 char const *text = R"( in TEST_F() local
74 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
93 char const *text = R"( in TEST_F() local
97 es2panda_Context *ctx = impl_->CreateContextFromString(cfg_, text, "dummy.sts"); in TEST_F()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ap_file/
H A Dpgo_method_type_set.h113 void ProcessToText(std::string &text) const;
197 void ProcessToText(std::string &text) const in ProcessToText()
199 text += std::to_string(GetOffset()); in ProcessToText()
200 text += DumpUtils::BLOCK_START; in ProcessToText()
201 text += DumpUtils::ARRAY_START + DumpUtils::SPACE; in ProcessToText()
205 text += DumpUtils::TYPE_SEPARATOR + DumpUtils::SPACE; in ProcessToText()
208 text += type_.GetObjectInfo(i).GetInfoString(); in ProcessToText()
210 text += (DumpUtils::SPACE + DumpUtils::ARRAY_END); in ProcessToText()
286 void ProcessToText(std::string &text) const in ProcessToText()
288 text in ProcessToText()
[all...]
H A Dpgo_method_type_set.cpp158 void PGOMethodTypeSet::ProcessToText(std::string &text) const in ProcessToText()
166 text += DumpUtils::ARRAY_START + DumpUtils::SPACE; in ProcessToText()
169 text += DumpUtils::TYPE_SEPARATOR + DumpUtils::SPACE; in ProcessToText()
171 text += std::to_string(typeInfoIter.GetOffset()); in ProcessToText()
172 text += DumpUtils::BLOCK_START; in ProcessToText()
173 text += typeInfoIter.GetType().GetTypeString(); in ProcessToText()
180 text += DumpUtils::ARRAY_START + DumpUtils::SPACE; in ProcessToText()
183 text += DumpUtils::TYPE_SEPARATOR + DumpUtils::SPACE; in ProcessToText()
185 rwScalarOpTypeInfoIter.ProcessToText(text); in ProcessToText()
189 text in ProcessToText()
[all...]
/arkcompiler/runtime_core/static_core/scripts/code_style/
H A Ddoxygen_style_check.py84 text = []
86 text = f.read()
90 line_num = text[:text.find(string)].count('\n') + 1
112 text = []
114 text = f.read()
115 lines = text.splitlines()
122 str_indexes = [s.start() for s in re.finditer(re.escape(string), text)]
124 line_num = text[:str_index].count('\n') + 1
151 text
[all...]
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/java_test_framework/java_cases/
H A DStringTest.java23 String text = "Hello, World!"; in main()
26 if (text.length() > 0) { in main()
31 if (text.contains("World")) { in main()
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/utils/
H A Dmetainformation.py39 def find_all_metas(text: str) -> List[MetaInText]:
41 Given a text of the whole test, this function:
42 1) Find all metas in this text
45 where 'start' and 'end' are indices in 'text' such that text[start:end] == "/*---" + strMeta + "---*/"
52 start_indices = [m.start() for m in re.finditer(META_START_PATTERN, text)]
53 end_indices = [m.end() for m in re.finditer(META_END_PATTERN, text)]
68 meta = __parse_meta(text[start:end])
/arkcompiler/runtime_core/tests/fuzztest/jsonobjectctor1_fuzzer/
H A Djsonobjectctor1_fuzzer.cpp23 std::string text(data, data + size); in JsonObjectCtor1FuzzTest()
24 panda::JsonObject json_object(text); in JsonObjectCtor1FuzzTest()
/arkcompiler/runtime_core/tests/fuzztest/vformat_fuzzer/
H A Dvformat_fuzzer.cpp23 std::string text(data, data + size); in VformatFuzzTest()
24 panda::helpers::string::Format("%s", text.c_str()); in VformatFuzzTest()
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/tests/
H A Dtest_gc_time_parser.py29 text = """
45 result = FwTimeParser().parse_text(text)

Completed in 10 milliseconds

1234