Home
last modified time | relevance | path

Searched refs:expected (Results 1 - 25 of 105) sorted by relevance

12345

/arkcompiler/runtime_core/libpandafile/tests/
H A Dfile_items_test.cpp78 std::string expected; in HWTEST() local
81 expected = "annotation_item"; in HWTEST()
84 expected = "catch_block_item"; in HWTEST()
87 expected = "class_index_item"; in HWTEST()
90 expected = "class_item"; in HWTEST()
93 expected = "code_item"; in HWTEST()
96 expected = "debug_info_item"; in HWTEST()
99 expected = "end_item"; in HWTEST()
102 expected = "field_index_item"; in HWTEST()
105 expected in HWTEST()
111 EXPECT_EQ(ItemTypeToString(type), expected); HWTEST() local
120 std::string expected; HWTEST() local
153 EXPECT_EQ(ItemTypeToString(type), expected); HWTEST() local
162 std::string expected; HWTEST() local
198 EXPECT_EQ(ItemTypeToString(type), expected); HWTEST() local
[all...]
H A Dbytecode_emitter_tests.cpp114 std::vector<uint8_t> expected; in HWTEST() local
116 expected << Opcode::RETURN; in HWTEST()
118 expected << Opcode::JMP_IMM8 << -num_ret; in HWTEST()
119 ASSERT_EQ(expected, out); in HWTEST()
137 std::vector<uint8_t> expected; in HWTEST() local
138 expected << Opcode::JMP_IMM8 << (num_ret + globals::IMM_2); in HWTEST()
140 expected << Opcode::RETURN; in HWTEST()
142 ASSERT_EQ(expected, out); in HWTEST()
158 std::vector<uint8_t> expected; in HWTEST() local
160 expected << Opcod in HWTEST()
176 std::vector<uint8_t> expected; HWTEST() local
202 std::vector<uint8_t> expected; HWTEST() local
223 std::vector<uint8_t> expected; HWTEST() local
387 std::vector<uint8_t> expected; HWTEST() local
411 std::vector<uint8_t> expected; HWTEST() local
428 std::vector<uint8_t> expected; HWTEST() local
448 std::vector<uint8_t> expected; HWTEST() local
482 std::vector<uint8_t> expected; HWTEST() local
516 std::vector<uint8_t> expected; HWTEST() local
557 std::vector<uint8_t> expected; HWTEST() local
669 std::vector<uint8_t> expected; TestNoneFormat() local
[all...]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/test/chapters_test/
H A Dchapters_test.py55 expected: Set[str] = {
63 self.assertSetEqual(actual, expected)
72 expected: Set[str] = {
80 self.assertSetEqual(actual, expected)
89 expected: Set[str] = {
96 self.assertSetEqual(actual, expected)
105 expected: Set[str] = {
108 self.assertSetEqual(actual, expected)
117 expected: Set[str] = {
121 self.assertSetEqual(actual, expected)
[all...]
/arkcompiler/runtime_core/static_core/libpandafile/tests/
H A Dbytecode_emitter_tests.cpp116 std::vector<uint8_t> expected; in TEST() local
118 expected << Opcode::RETURN_VOID; in TEST()
120 expected << Opcode::JMP_IMM8 << -numRet; in TEST()
121 ASSERT_EQ(expected, out); in TEST()
139 std::vector<uint8_t> expected; in TEST() local
140 expected << Opcode::JMP_IMM8 << numRet + globals::IMM_2; in TEST()
142 expected << Opcode::RETURN_VOID; in TEST()
144 ASSERT_EQ(expected, out); in TEST()
160 std::vector<uint8_t> expected; in TEST() local
162 expected << Opcod in TEST()
178 std::vector<uint8_t> expected; TEST() local
204 std::vector<uint8_t> expected; TEST() local
225 std::vector<uint8_t> expected; TEST() local
391 std::vector<uint8_t> expected; TEST() local
415 std::vector<uint8_t> expected; TEST() local
437 std::vector<uint8_t> expected; JcmpBwd_V8_IMM8() local
461 std::vector<uint8_t> expected; JcmpFwd_V8_IMM8() local
489 std::vector<uint8_t> expected; JcmpBwd_V8_IMM16() local
508 std::vector<uint8_t> expected; JcmpBwd_V8_IMM16() local
536 std::vector<uint8_t> expected; JcmpFwd_V8_IMM16() local
557 std::vector<uint8_t> expected; JcmpFwd_V8_IMM16() local
575 std::vector<uint8_t> expected; TEST() local
595 std::vector<uint8_t> expected; TEST() local
614 std::vector<uint8_t> expected; Jcmpz_IMM8() local
632 std::vector<uint8_t> expected; Jcmpz_IMM16() local
665 std::vector<uint8_t> expected; TEST() local
699 std::vector<uint8_t> expected; TEST() local
740 std::vector<uint8_t> expected; TEST() local
798 std::vector<uint8_t> expected; TestNoneFormat() local
[all...]
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dobject_helpers_test.cpp160 ObjectHeader *expected = AllocString(); in TEST_F() local
161 ASSERT_NE(nullptr, expected); in TEST_F()
162 ObjectAccessor::SetFieldObject<false>(klass, *field, expected); in TEST_F()
165 auto handler = [klass, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, bool isVolatile) { in TEST_F()
168 EXPECT_EQ(expected, ref); in TEST_F()
189 ObjectHeader *expected = AllocString(); in TEST_F() local
190 ASSERT_NE(nullptr, expected); in TEST_F()
191 ObjectAccessor::SetFieldObject<false>(klass, *field, expected); in TEST_F()
194 auto handler = [klass, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, bool isVolatile) { in TEST_F()
197 EXPECT_EQ(expected, re in TEST_F()
220 ObjectHeader *expected = AllocString(); TEST_F() local
251 ObjectHeader *expected = AllocString(); TEST_F() local
272 ObjectHeader *expected = AllocString(); TEST_F() local
[all...]
H A Dstatic_analyzer_test.cpp86 ObjectHeader *expected = AllocString(); in TEST_F() local
87 ASSERT_NE(nullptr, expected); in TEST_F()
88 array->Set(0U, expected); // SUPPRESS_CSA in TEST_F()
90 array->Set(1U, expected); in TEST_F()
94 auto handler = [array, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, bool isVolatile) { in TEST_F()
97 EXPECT_EQ(expected, ref); in TEST_F()
140 ObjectHeader *expected = ca->VirtualAllocString(*this); in TEST_F() local
141 ASSERT_NE(nullptr, expected); in TEST_F()
142 array->Set(0U, expected); // SUPPRESS_CSA in TEST_F()
/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dtype_converter_tests.cpp47 double expected = leftPartTime + rightPartTime * 1e-3; in TEST() local
49 ASSERT_EQ(TimeConverter(nanos), ValueUnit(expected, "us")); in TEST()
50 ASSERT_EQ(TimeConverter(nanos * 1e3), ValueUnit(expected, "ms")); in TEST()
51 ASSERT_EQ(TimeConverter(nanos * 1e6), ValueUnit(expected, "s")); in TEST()
52 ASSERT_EQ(TimeConverter(nanos * 1e6 * 60), ValueUnit(expected, "m")); in TEST()
53 ASSERT_EQ(TimeConverter(nanos * 1e6 * 60 * 60), ValueUnit(expected, "h")); in TEST()
54 ASSERT_EQ(TimeConverter(nanos * 1e6 * 60 * 60 * 24), ValueUnit(expected, "day")); in TEST()
82 double expected = leftPartBytes + rightPartBytes * 1e-3; in TEST() local
84 ASSERT_EQ(MemoryConverter(bytes), ValueUnit(expected, "KB")); in TEST()
85 ASSERT_EQ(MemoryConverter(bytes * (1UL << 10U)), ValueUnit(expected, "M in TEST()
[all...]
/arkcompiler/runtime_core/libpandabase/tests/
H A Dtype_converter_tests.cpp44 double expected = left_part_time + right_part_time * 1e-3; in HWTEST() local
46 ASSERT_EQ(TimeConverter(nanos), ValueUnit(expected, "us")); in HWTEST()
47 ASSERT_EQ(TimeConverter(nanos * 1e3), ValueUnit(expected, "ms")); in HWTEST()
48 ASSERT_EQ(TimeConverter(nanos * 1e6), ValueUnit(expected, "s")); in HWTEST()
49 ASSERT_EQ(TimeConverter(nanos * 1e6 * 60), ValueUnit(expected, "m")); in HWTEST()
50 ASSERT_EQ(TimeConverter(nanos * 1e6 * 60 * 60), ValueUnit(expected, "h")); in HWTEST()
51 ASSERT_EQ(TimeConverter(nanos * 1e6 * 60 * 60 * 24), ValueUnit(expected, "day")); in HWTEST()
78 double expected = left_part_bytes + right_part_bytes * 1e-3; in HWTEST() local
80 ASSERT_EQ(MemoryConverter(bytes), ValueUnit(expected, "KB")); in HWTEST()
81 ASSERT_EQ(MemoryConverter(bytes * (1UL << 10)), ValueUnit(expected, "M in HWTEST()
[all...]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/test/multiple_config_test/
H A Dmultiple_config_test.py51 expected: Dict[str, Any] = {
72 self.compare_dicts(actual, expected)
84 expected: Dict[str, Any] = {
109 self.compare_dicts(actual, expected)
121 expected: Dict[str, Any] = {
142 self.compare_dicts(actual, expected)
156 expected: Dict[str, Any] = {
177 self.compare_dicts(actual, expected)
191 expected: Dict[str, Any] = {
212 self.compare_dicts(actual, expected)
[all...]
/arkcompiler/toolchain/websocket/server/
H A Dwebsocket_server.cpp149 auto expected = ConnectionState::CLOSED; in MoveToConnectingState() local
150 if (!CompareExchangeConnectionState(expected, ConnectionState::CONNECTING)) { in MoveToConnectingState()
151 switch (expected) { in MoveToConnectingState()
169 expected = SetConnectionState(ConnectionState::CLOSED); in MoveToConnectingState()
170 if (expected != ConnectionState::CONNECTING) { in MoveToConnectingState()
188 auto expected = SetConnectionState(ConnectionState::CLOSED); in AcceptNewConnection() local
189 if (expected != ConnectionState::CONNECTING) { in AcceptNewConnection()
191 EnumToNumber(expected)); in AcceptNewConnection()
203 auto expected = SetConnectionState(ConnectionState::CLOSING); in AcceptNewConnection() local
204 if (expected ! in AcceptNewConnection()
351 auto expected = SetConnectionState(ConnectionState::CLOSING); ConnectUnixWebSocketBySocketpair() local
378 auto expected = SetConnectionState(ConnectionState::OPEN); OnNewConnection() local
[all...]
/arkcompiler/runtime_core/tests/fuzztest/expected_fuzzer/
H A Dexpected_fuzzer.cpp18 #include "utils/expected.h"
25 panda::Expected<int, ErrorCode> expected; in ExpectedFuzzTest() local
26 if (expected.HasValue() && *expected != expected.Value()) { in ExpectedFuzzTest()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/compiler_verification/
H A Dexpression_verifier.py90 expected: ScriptFile,
104 expected: ScriptFile,
108 expected = script_disassembler.disassemble(expected)
110 ast_comparator = AstComparator(expression, expected, options.expected_imports_base)
119 expected,
145 expected: ScriptFile,
154 verifier(base, expression, expected)
H A Dbytecode.py41 def __init__(self, expression: ScriptFile, expected: ScriptFile, base_module_name: str, eval_method_name: str):
43 self.expected = expected
61 with self.expected.disasm_file.open() as expected_file:
/arkcompiler/ets_runtime/test/aottest/formatrangetoparts/
H A Dformatrangetoparts.js23 function compare(actual, expected, message) {
24 for (const [i, actualEntry, expectedEntry] of zip(actual, expected)) {
36 const expected = dtf.formatRangeToParts(0, date);
38 compare(dtf.formatRangeToParts(-0.9, date), expected, "formatRangeToParts(-0.9)")
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/internal_tests/
H A Dtest_arkts_str.py88 expected: List[str] = []
103 expected += [f"{var}: {arkts_str(v_exp)}"]
115 return code, expected
124 expected: list[str],
133 assert paused.capture.stdout == expected
173 code, expected = _code_generator(objects)
182 await _check(label, paused, walker, log, expect, expected)
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/connection/asio/
H A Dserver_endpoint.h45 ConnectionPtr expected; in Pin() local
47 return std::atomic_compare_exchange_strong(&connection_, &expected, endpoint_.get_con_from_hdl(hdl)); in Pin()
52 auto expected = endpoint_.get_con_from_hdl(hdl); in Unpin() local
54 std::atomic_compare_exchange_strong(&connection_, &expected, {}); in Unpin()
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/reports/
H A Dreport.py104 expected, actual = self.__make_output_diff_html(self.test.expected, actual_report.output)
105 test_expected, test_actual = "\n".join(expected), "\n".join(actual)
135 def __make_output_diff_html(self, expected: str, actual: str) -> Tuple[List[str], List[str]]:
136 expected_list = convert_to_array(expected)
165 def __get_md_good_line(expected: str, actual: str) -> str:
166 return f"| {expected} | {actual} |"
169 def __get_md_failed_line(expected: str, actual: str) -> str:
170 if expected.strip() != "":
171 expected
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/promise/
H A Dreturn_promise_to_js_test.js18 function equal(actual, expected) {
19 // try to convert expected to actual's type
21 return actual === Boolean(expected);
24 return Math.abs(actual - Number(expected)) < eps;
27 return String(actual) === String(expected);
73 console.log('Expected <test name> <expected value> <number of iterations>');
/arkcompiler/runtime_core/bytecode_optimizer/tests/
H A Dcanonicalization_test.cpp39 auto expected = CreateEmptyGraph(); in TEST_F() local
40 GRAPH(expected) in TEST_F()
53 EXPECT_TRUE(GraphComparator().Compare(graph, expected)); in TEST_F()
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Datomic.h37 ALWAYS_INLINE inline T AtomicCmpxchgStrong(T *addr, T expected, T newValue, std::memory_order order) in AtomicCmpxchgStrong() argument
40 reinterpret_cast<std::atomic<T> *>(addr)->compare_exchange_strong(expected, newValue, order); in AtomicCmpxchgStrong()
41 return expected; in AtomicCmpxchgStrong()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/napi/lib/
H A DInterfaceNativeTest.cpp106 std::string expected = {"HELLO WORLD!"}; in ETS_InterfaceNativeTest_testGetStrUTF() local
112 if (buf1[i] != expected[i] || buf2[i] != expected[i + 6U]) { in ETS_InterfaceNativeTest_testGetStrUTF()
113 printf("error: buf1[%i] = '%c', buf2[%i] = '%c', expected '%c' and '%c'", i, buf1[i], i, buf2[i], in ETS_InterfaceNativeTest_testGetStrUTF()
114 expected[i], expected[i + 6U]); in ETS_InterfaceNativeTest_testGetStrUTF()
/arkcompiler/runtime_core/static_core/runtime/tests/interpreter/
H A Dtest_runtime_interface.h122 bool expected {false};
126 bool expected {false};
130 bool expected {false};
136 bool expected {false};
141 bool expected {false};
147 bool expected {false};
152 bool expected {false};
313 ASSERT_TRUE(npeData_.expected); in ThrowNullPointerException()
318 ASSERT_TRUE(arrayOobExceptionData_.expected); in ThrowArrayIndexOutOfBoundsException()
325 ASSERT_TRUE(arrayNegSizeExceptionData_.expected); in ThrowNegativeArraySizeException()
[all...]
/arkcompiler/runtime_core/static_core/bytecode_optimizer/tests/
H A Dcanonicalization_test.cpp41 auto expected = CreateEmptyGraph(); in TEST_F() local
42 GRAPH(expected) in TEST_F()
55 EXPECT_TRUE(GraphComparator().Compare(graph, expected)); in TEST_F()
/arkcompiler/ets_runtime/test/moduletest/elements_kind/
H A Delements_kind.js1005 let expected = "Output: 1,2,3";
1006 if (result == expected) {
1018 let expected = "Output: 1.1,2.2,3.3";
1019 if (result == expected) {
1031 let expected = "Output: 1,2.2,3.3";
1032 if (result == expected) {
1044 let expected = "Output: 1,,3";
1045 if (result == expected) {
1057 let expected = "Output: 1.1,,3.3";
1058 if (result == expected) {
[all...]
/arkcompiler/ets_runtime/test/moduletest/elements_kind_generic/
H A Delements_kind_generic.js998 let expected = "Output: 1,2,3";
999 if (result == expected) {
1011 let expected = "Output: 1.1,2.2,3.3";
1012 if (result == expected) {
1024 let expected = "Output: 1,2.2,3.3";
1025 if (result == expected) {
1037 let expected = "Output: 1,,3";
1038 if (result == expected) {
1050 let expected = "Output: 1.1,,3.3";
1051 if (result == expected) {
[all...]

Completed in 12 milliseconds

12345