Home
last modified time | relevance | path

Searched refs:expect (Results 251 - 275 of 1127) sorted by relevance

1...<<11121314151617181920>>...46

/test/xts/acts/location/geolocation_standard/entry/src/ohosTest/js/test/
H A DGetCountryCode.test.js20 import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '@ohos/hypium'
36 expect().assertFail();
108 expect(true).assertEqual(result!=null);
109 expect(true).assertEqual(JSON.stringify(result.country)!=null);
110 expect(true).assertEqual(JSON.stringify(result.type)!=null);
113 expect().assertFail();
117 expect().assertFail();
136 expect(true).assertEqual(data != null);
141 expect().assertFail();
162 expect(tru
[all...]
/third_party/skia/third_party/externals/tint/tools/src/substr/
H A Dsubstr_test.go26 expect string
33 expect: "def_ghi_jkl",
38 expect: "def\nghi\njkl",
43 expect: "12345",
48 expect: "12345",
53 expect: "12345",
58 expect: "", // cannot produce a sensible diff
71 expect: `Return{
102 expect: `Assignment{
213 expect
[all...]
/foundation/systemabilitymgr/samgr/services/samgr/native/test/unittest/rust/
H A Drust_samgr_test.rs56 let service = TestStub::new_remote_stub(TestService).expect("create TestService failed"); in add_systemability_test()
61 .expect("add_systemability failed"); in add_systemability_test()
67 let service = TestStub::new_remote_stub(TestService).expect("create TestService failed"); in unload_systemability_test()
72 .expect("add_systemability failed"); in unload_systemability_test()
75 .expect("unload_systemability failed"); in unload_systemability_test()
81 let service = TestStub::new_remote_stub(TestService).expect("create TestService failed"); in get_service_test()
86 .expect("add_systemability failed"); in get_service_test()
93 let service = TestStub::new_remote_stub(TestService).expect("create TestService failed"); in test_request_concurent()
98 .expect("add_systemability failed"); in test_request_concurent()
100 let value = remote.request_concurent(false).expect("shoul in test_request_concurent()
[all...]
/foundation/distributeddatamgr/preferences/test/js/unittest/storage/src/
H A DStorageHelperJsunit.test.js16 import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
49 expect(value).assertEqual(2);
62 expect(value).assertEqual(2);
64 expect(null).assertFail();
80 expect(null).assertFail();
84 expect(value).assertEqual(2);
97 expect(null).assertFail();
111 expect(null).assertFail();
116 expect(null).assertFail();
131 expect(nul
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/lkdtm/
H A Drun.sh43 expect=$(echo "$line" | cut -d" " -f2-)
45 expect=""
51 if [ -z "$expect" ]; then
52 expect="crashes entire system"
54 echo "Skipping $test: $expect"
59 if [ -z "$expect" ]; then
60 expect="call trace:"
93 if grep -E -qi "$expect" "$LOG" ; then
94 echo "$test: saw '$expect': ok"
101 echo "$test: missing '$expect'
[all...]
/third_party/python/Lib/test/
H A Dtest_eof.py11 expect = "unterminated string literal (detected at line 1) (<string>, line 1)"
17 self.assertEqual(str(msg), expect)
23 expect = ("unterminated triple-quoted string literal (detected at line 1) (<string>, line 1)")
27 self.assertEqual(str(msg), expect)
33 expect = ("(<string>, line 1)")
40 expect = "unexpected EOF while parsing (<string>, line 1)"
44 self.assertEqual(str(msg), expect)
50 expect = 'unexpected EOF while parsing (<string>, line 1)'
53 self.assertEqual(str(excinfo.exception), expect)
56 self.assertEqual(str(excinfo.exception), expect)
[all...]
/test/xts/acts/distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/entry/src/ohosTest/js/test/
H A DKvManagerKVPromiseJsTest.js15 import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
96 expect(null).assertFail();
102 expect(e.code == 401).assertTrue();
118 expect(null).assertFail();
124 expect(e.code == 401).assertTrue();
148 expect(null).assertFail();
151 expect(err.code == 401).assertTrue();
170 expect(null).assertFail();
187 expect(0).assertEqual(data.length);
190 expect(nul
[all...]
/third_party/rust/crates/rust-openssl/openssl/src/
H A Dcms.rs297 let pub_cert = X509::from_der(pub_cert_bytes).expect("failed to load pub cert"); in cms_encrypt_decrypt()
301 let priv_cert = Pkcs12::from_der(priv_cert_bytes).expect("failed to load priv cert"); in cms_encrypt_decrypt()
304 .expect("failed to parse priv cert"); in cms_encrypt_decrypt()
308 let mut cert_stack = Stack::new().expect("failed to create stack"); in cms_encrypt_decrypt()
311 .expect("failed to add pub cert to stack"); in cms_encrypt_decrypt()
319 .expect("failed create encrypted cms"); in cms_encrypt_decrypt()
323 let encrypted_der = encrypt.to_der().expect("failed to create der from cms"); in cms_encrypt_decrypt()
325 CmsContentInfo::from_der(&encrypted_der).expect("failed read cms from der"); in cms_encrypt_decrypt()
332 .expect("failed to decrypt cms"); in cms_encrypt_decrypt()
334 .expect("faile in cms_encrypt_decrypt()
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DMessagePatternUtilTest.java283 ExpectMessageNode expect = new ExpectMessageNode().expectTextThatContains("Hello"); in TestHello()
284 expect.checkMatches(msg); in TestHello()
291 ExpectMessageNode expect = new ExpectMessageNode().expectTextThatContains("Hel'lo"); in TestHelloWithApos()
292 expect.checkMatches(msg); in TestHelloWithApos()
299 ExpectMessageNode expect = new ExpectMessageNode().expectTextThatContains("Hel{o"); in TestHelloWithQuote()
300 expect.checkMatches(msg); in TestHelloWithQuote()
303 expect.checkMatches(msg); in TestHelloWithQuote()
306 expect = new ExpectMessageNode().expectTextThatContains("a{bc'def"); in TestHelloWithQuote()
307 expect.checkMatches(msg); in TestHelloWithQuote()
314 ExpectMessageNode expect in TestNoneArg()
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
H A DMessagePatternUtilTest.java286 ExpectMessageNode expect = new ExpectMessageNode().expectTextThatContains("Hello"); in TestHello()
287 expect.checkMatches(msg); in TestHello()
294 ExpectMessageNode expect = new ExpectMessageNode().expectTextThatContains("Hel'lo"); in TestHelloWithApos()
295 expect.checkMatches(msg); in TestHelloWithApos()
302 ExpectMessageNode expect = new ExpectMessageNode().expectTextThatContains("Hel{o"); in TestHelloWithQuote()
303 expect.checkMatches(msg); in TestHelloWithQuote()
306 expect.checkMatches(msg); in TestHelloWithQuote()
309 expect = new ExpectMessageNode().expectTextThatContains("a{bc'def"); in TestHelloWithQuote()
310 expect.checkMatches(msg); in TestHelloWithQuote()
317 ExpectMessageNode expect in TestNoneArg()
[all...]
/foundation/distributeddatamgr/relational_store/test/js/relationalstore/unittest/src/
H A DRdbstorePluginLibsJsunit.test.js15 import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
62 expect().assertFail();
77 expect().assertFail();
80 expect(14800021).assertEqual(e.code);
95 expect().assertFail();
98 expect(14800010).assertEqual(e.code);
113 expect().assertFail();
116 expect(14800010).assertEqual(e.code);
132 expect().assertFail();
135 expect(1480002
[all...]
H A DRdbstoreAfterCloseJsunit.test.js16 import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
79 expect(null).assertFail();
82 expect("14800014").assertEqual(err.code)
107 expect(null).assertFail();
110 expect("14800014").assertEqual(err.code)
137 expect(null).assertFail();
140 expect("14800014").assertEqual(err.code)
164 expect(null).assertFail();
167 expect("14800014").assertEqual(err.code)
192 expect(nul
[all...]
H A DRdbstoreRdbstoreJsunit.test.js16 import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
61 expect().assertFail();
78 expect().assertFail();
99 expect("401").assertEqual(e.code)
116 expect().assertFail();
132 expect(5).assertEqual(store.version)
134 expect(2147483647).assertEqual(store.version)
136 expect().assertFail();
156 expect("401").assertEqual(err.code);
162 expect("40
[all...]
/test/xts/acts/telephony/telephonyjstest/netmanager_base/socket/entry/src/ohosTest/js/test/
H A DNetworkManagerTCPSocketServer.test.js16 import { describe, it, expect } from '@ohos/hypium';
47 expect().assertFail();
64 expect(server).assertInstanceOf('Object');
67 expect().assertFail();
86 expect(data).assertFail();
104 expect(err.code).assertEqual(401);
110 console.info(`${caseName} catch error, expect error: [${error.code}, ${error.message}]`);
111 expect(error.code == 401).assertTrue();
126 expect(data).assertFail();
145 expect(dat
[all...]
/test/xts/acts/security/huks/security_huks_basic/huks_cipher_promise_BasicTest/entry/src/ohosTest/js/test/Cipher/
H A DSecurityHuksCipherRSABasicPromiseJsunit.test.js16 import { describe, it, expect } from '@ohos/hypium';
50 expect(data.errorCode == 0).assertTrue();
54 expect(null).assertFail();
64 expect(data.errorCode == 0).assertTrue();
68 expect(null).assertFail();
78 expect(data.errorCode == 0).assertTrue();
82 expect(null).assertFail();
93 expect(data.errorCode == 0).assertTrue();
97 expect(null).assertFail();
130 expect(dat
[all...]
/test/xts/acts/multimedia/media/media_js_standard/
H A DAVRecorderTestBase.js74 expect(avRecorder.state).assertEqual(AV_RECORDER_STATE.PREPARED);
87 expect(avRecorder.state).assertEqual(AV_RECORDER_STATE.PREPARED);
128 expect(config.audioSourceType).assertEqual(avConfig.audioSourceType);
129 expect(config.audioBitrate).assertEqual(avConfig.audioBitrate);
158 expect(avRecorder.state).assertEqual(AV_RECORDER_STATE.STARTED);
176 expect(avRecorder.state).assertEqual(AV_RECORDER_STATE.STARTED);
195 expect(avRecorder.state).assertEqual(AV_RECORDER_STATE.PAUSED);
208 expect(avRecorder.state).assertEqual(AV_RECORDER_STATE.PAUSED);
245 expect(avRecorder.state).assertEqual(AV_RECORDER_STATE.STOPPED);
258 expect(avRecorde
[all...]
H A DAVPlayerTestBase.js70 expect(Math.abs(avPlayer.duration - playTest.duration)).assertLess(500);
72 expect(avPlayer.width).assertEqual(playTest.width);
73 expect(avPlayer.height).assertEqual(playTest.height);
255 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.INITIALIZED);
270 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
272 expect(avPlayer.currentTime).assertEqual(0);
285 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
290 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
300 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PAUSED);
307 expect(avPlaye
[all...]
/kernel/linux/linux-5.10/kernel/kcsan/
H A Dkcsan-test.c95 * case, we'd expect tests to fail. in probe_console()
134 /* Report information we expect in a report. */
152 typeof(*observed.lines) *expect; in report_matches()
161 expect = kmalloc(sizeof(observed.lines), GFP_KERNEL); in report_matches()
162 if (WARN_ON(!expect)) in report_matches()
168 cur = expect[0]; in report_matches()
169 end = &expect[0][sizeof(expect[0]) - 1]; in report_matches()
186 cur = strchr(expect[0], '+'); in report_matches()
192 cur = expect[ in report_matches()
426 const struct expect_report expect = { test_basic() local
457 const struct expect_report expect = { test_concurrent_races() local
486 const struct expect_report expect = { test_novalue_change() local
511 const struct expect_report expect = { test_novalue_change_exception() local
530 const struct expect_report expect = { test_unknown_origin() local
552 const struct expect_report expect = { test_write_write_assume_atomic() local
578 const struct expect_report expect = { test_write_write_struct() local
600 const struct expect_report expect = { test_write_write_struct_part() local
632 const struct expect_report expect = { test_read_plain_atomic_write() local
654 const struct expect_report expect = { test_read_plain_atomic_rmw() local
677 const struct expect_report expect = { test_zero_size_access() local
717 const struct expect_report expect = { test_assert_exclusive_writer() local
735 const struct expect_report expect = { test_assert_exclusive_access() local
789 const struct expect_report expect = { test_assert_exclusive_bits_change() local
[all...]
/test/xts/acts/security/cryptoFramework/js_api_test_one/entry/src/ohosTest/js/test/utils/asymmetric/
H A DpublicAsymmetricPromise.js16 import { expect } from "@ohos/hypium";
229 expect(rsaGenerator != null).assertTrue();
231 expect(cipherGeneratorEncrypt != null).assertTrue();
233 expect(cipherGeneratorDecrypt != null).assertTrue();
237 expect(rsaKeyPair != null).assertTrue();
247 expect(initData === "init success").assertTrue();
251 expect(finalOutput != null).assertTrue();
264 expect(initData === "init success").assertTrue();
281 expect(decryptData == globalText).assertTrue();
301 expect(rsaGenerato
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/rseq/
H A Drseq-arm64.h156 #define RSEQ_ASM_OP_CMPEQ(var, expect, label) \
159 ", %[" __rseq_str(expect) "]\n" \
162 #define RSEQ_ASM_OP_CMPEQ32(var, expect, label) \
165 ", %w[" __rseq_str(expect) "]\n" \
168 #define RSEQ_ASM_OP_CMPNE(var, expect, label) \
171 ", %[" __rseq_str(expect) "]\n" \
208 int rseq_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument
222 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_storev()
226 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_storev()
236 [expect] " in rseq_cmpeqv_storev()
374 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev() argument
437 rseq_cmpeqv_trystorev_storev_release(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev_release() argument
500 rseq_cmpeqv_cmpeqv_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t expect2, intptr_t newv, int cpu) rseq_cmpeqv_cmpeqv_storev() argument
568 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev() argument
632 rseq_cmpeqv_trymemcpy_storev_release(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev_release() argument
[all...]
/foundation/communication/ipc/example/rust_test/service/src/
H A Dlib.rs102 let num1: i32 = data.read().expect("Failed to read num1 in addition operation"); in on_icalc_remote_request()
103 let num2: i32 = data.read().expect("Failed to read num2 in addition operation"); in on_icalc_remote_request()
109 let num1: i32 = data.read().expect("Failed to read num1 in subtraction operation"); in on_icalc_remote_request()
110 let num2: i32 = data.read().expect("Failed to read num1 in subtraction operation"); in on_icalc_remote_request()
116 let num1: i32 = data.read().expect("Failed to read num1 in multiplication operation"); in on_icalc_remote_request()
117 let num2: i32 = data.read().expect("Failed to read num1 in multiplication operation"); in on_icalc_remote_request()
123 let num1: i32 = data.read().expect("Failed to read num1 in division operation"); in on_icalc_remote_request()
124 let num2: i32 = data.read().expect("Failed to read num1 in division operation"); in on_icalc_remote_request()
157 let mut data = MsgParcel::new().expect("MsgParcel should success"); in add()
162 let ret: i32 = reply.read().expect("nee in add()
[all...]
/test/xts/acts/distributeddatamgr/relationalStoretest/RdbJstest/hap/entry/src/ohosTest/js/test/
H A DRdbstoreRdbstoreJsunit.test.js16 import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '@ohos/hypium'
65 expect(null).assertFail();
68 expect(null).assertFail();
87 expect(null).assertFail();
90 expect(null).assertFail();
112 expect(null).assertFail();
116 expect(false).assertTrue();
119 expect(error.code).assertEqual("401")
137 expect(null).assertFail();
156 expect(nul
[all...]
/third_party/rust/crates/nix/test/sys/
H A Dtest_wait.rs14 match unsafe { fork() }.expect("Error: Fork Failed") { in test_wait_signal()
20 kill(child, Some(SIGKILL)).expect("Error: Kill Failed"); in test_wait_signal()
41 match unsafe { fork() }.expect("Error: Fork Failed") { in test_waitid_signal()
47 kill(child, Some(SIGKILL)).expect("Error: Kill Failed"); in test_waitid_signal()
61 match unsafe { fork() }.expect("Error: Fork Failed") { in test_wait_exit()
84 match unsafe { fork() }.expect("Error: Fork Failed") { in test_waitid_exit()
174 .expect("setoptions failed"); in ptrace_wait_parent()
177 ptrace::syscall(child, None).expect("syscall failed"); in ptrace_wait_parent()
180 ptrace::cont(child, None).expect("cont failed"); in ptrace_wait_parent()
190 ptrace::cont(child, None).expect("con in ptrace_wait_parent()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/rseq/
H A Drseq-riscv-bits.h9 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument
22 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in rseq_cmpeqv_storev()
26 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") in rseq_cmpeqv_storev()
36 [expect] "r" (expect), in rseq_cmpeqv_storev()
163 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument
179 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[cmpfail]") in rseq_cmpeqv_cmpeqv_storev()
185 RSEQ_ASM_OP_CMPEQ(v, expect, "%l[error2]") in rseq_cmpeqv_cmpeqv_storev()
196 [expect] "r" (expect), in rseq_cmpeqv_cmpeqv_storev()
281 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev() argument
344 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev() argument
[all...]
H A Drseq-ppc-bits.h15 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_storev)(intptr_t *v, intptr_t expect, intptr_t newv, int cpu) in rseq_cmpeqv_storev() argument
31 /* cmp @v equal to @expect */ in rseq_cmpeqv_storev()
32 RSEQ_ASM_OP_CMPEQ(v, expect, %l[cmpfail]) in rseq_cmpeqv_storev()
37 /* cmp @v equal to @expect */ in rseq_cmpeqv_storev()
38 RSEQ_ASM_OP_CMPEQ(v, expect, %l[error2]) in rseq_cmpeqv_storev()
49 [expect] "r" (expect), in rseq_cmpeqv_storev()
207 int RSEQ_TEMPLATE_IDENTIFIER(rseq_cmpeqv_cmpeqv_storev)(intptr_t *v, intptr_t expect, in rseq_cmpeqv_cmpeqv_storev() argument
226 /* cmp @v equal to @expect */ in rseq_cmpeqv_cmpeqv_storev()
227 RSEQ_ASM_OP_CMPEQ(v, expect, in rseq_cmpeqv_cmpeqv_storev()
292 rseq_cmpeqv_trystorev_storev(intptr_t *v, intptr_t expect, intptr_t *v2, intptr_t newv2, intptr_t newv, int cpu) rseq_cmpeqv_trystorev_storev() argument
369 rseq_cmpeqv_trymemcpy_storev(intptr_t *v, intptr_t expect, void *dst, void *src, size_t len, intptr_t newv, int cpu) rseq_cmpeqv_trymemcpy_storev() argument
[all...]

Completed in 12 milliseconds

1...<<11121314151617181920>>...46