Home
last modified time | relevance | path

Searched refs:expect (Results 476 - 500 of 993) sorted by relevance

1...<<11121314151617181920>>...40

/third_party/rust/crates/nix/test/sys/
H A Dtest_termios.rs24 let pty = openpty(None, None).expect("openpty failed"); in test_tcgetattr_pty()
26 close(pty.master).expect("closing the master failed"); in test_tcgetattr_pty()
27 close(pty.slave).expect("closing the slave failed"); in test_tcgetattr_pty()
54 let pty = openpty(None, None).expect("openpty failed"); in test_output_flags()
57 let termios = tcgetattr(pty.slave).expect("tcgetattr failed"); in test_output_flags()
H A Dtest_sockopt.rs304 .expect("setting ipv4ttl on an inet socket should succeed"); in test_ttl_opts()
313 .expect("setting ipv6ttl on an inet6 socket should succeed"); in test_ttl_opts()
327 .expect("setting IP_DONTFRAG on an inet stream socket should succeed"); in test_dontfrag_opts()
328 setsockopt(fd4, sockopt::IpDontFrag, &false).expect( in test_dontfrag_opts()
338 setsockopt(fd4d, sockopt::IpDontFrag, &true).expect( in test_dontfrag_opts()
341 setsockopt(fd4d, sockopt::IpDontFrag, &false).expect( in test_dontfrag_opts()
364 setsockopt(fd6, sockopt::Ipv6DontFrag, &true).expect( in test_v6dontfrag_opts()
367 setsockopt(fd6, sockopt::Ipv6DontFrag, &false).expect( in test_v6dontfrag_opts()
377 setsockopt(fd6d, sockopt::Ipv6DontFrag, &true).expect( in test_v6dontfrag_opts()
380 setsockopt(fd6d, sockopt::Ipv6DontFrag, &false).expect( in test_v6dontfrag_opts()
[all...]
/third_party/rust/crates/nix/test/
H A Dtest_unistd.rs46 match unsafe { fork() }.expect("Error: Fork Failed") { in test_fork_and_waitpid()
75 match unsafe { fork() }.expect("Error: Fork Failed") { in test_wait()
461 fchdir(tmpdir_fd).expect("assertion failed"); in test_fchdir()
464 close(tmpdir_fd).expect("assertion failed"); in test_fchdir()
474 chdir(&tmpdir_path).expect("assertion failed"); in test_getcwd()
486 .expect("assertion failed"); in test_getcwd()
488 chdir(inner_tmp_dir.as_path()).expect("assertion failed"); in test_getcwd()
647 .expect("fpathconf failed") in test_fpathconf_limited()
648 .expect("PATH_MAX is unlimited") in test_fpathconf_limited()
659 .expect("pathcon in test_pathconf_limited()
[all...]
/test/xts/acts/security/huks/security_huks_reformed_test/huks_signverify_promise_BasicTest/entry/src/ohosTest/js/test/SignVerify/
H A DSecurityHuksRSASignExtendJsunit.test.js16 import { describe, it, expect, beforeAll } from "@ohos/hypium";
113 expect(null).assertFail();
117 expect(null).assertFail();
131 expect(null).assertFail();
135 expect(null).assertFail();
145 expect(null).assertFail();
148 expect(err.code == errCode).assertTrue();
152 expect(null).assertFail();
165 expect(null).assertFail();
169 expect(nul
[all...]
/foundation/window/window_manager/utils/include/
H A Datomic_map.h90 bool expect = false; in locked() local
91 while (!isWritingOrReading_.compare_exchange_weak(expect, true, std::memory_order_relaxed)) { in locked()
92 expect = false; in locked()
/third_party/node/test/parallel/
H A Dtest-http-zero-length-write.js62 const expect = 'asdffoobar';
71 assert.strictEqual(actual, expect);
86 assert.strictEqual(actual, expect);
H A Dtest-http2-zero-length-write.js24 const expect = 'asdffoobar';
35 assert.strictEqual(actual, expect);
47 assert.strictEqual(actual, expect);
H A Dtest-event-emitter-remove-all-listeners.js28 function expect(expected) { function
49 ee.on('removeListener', expect(['bar', 'baz', 'baz']));
71 ee.on('removeListener', expect(['foo', 'bar', 'removeListener']));
72 ee.on('removeListener', expect(['foo', 'bar']));
/third_party/rust/crates/libc/ci/
H A Druntest-android.rs17 .expect("failed to run: adb wait-for-device"); in main()
25 .expect("failed to run: adb push"); in main()
33 .expect("failed to run: adb shell"); in main()
/third_party/skia/third_party/externals/spirv-tools/test/tools/
H A Dexpect_unittest.py14 """Tests for the expect module."""
16 import expect namespace
22 class TestStdoutMatchADotC(expect.StdoutMatch):
42 expect.get_object_filename(f[0]) for f in source_and_object_names
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/tools/
H A Dexpect_unittest.py14 """Tests for the expect module."""
16 import expect namespace
22 class TestStdoutMatchADotC(expect.StdoutMatch):
42 expect.get_object_filename(f[0]) for f in source_and_object_names
/third_party/python/Lib/test/test_json/
H A Dtest_encode_basestring_ascii.py23 for input_string, expect in CASES:
25 self.assertEqual(result, expect,
27 result, expect, fname, input_string))
/third_party/rust/crates/os_str_bytes/src/windows/wtf8/
H A Dstring.rs22 .expect("failed decoding non-empty suffix");
52 .expect("failed decoding non-empty prefix");
58 .expect("failed decoding non-empty substring")
/third_party/spirv-tools/test/tools/
H A Dexpect_unittest.py14 """Tests for the expect module."""
16 import expect namespace
22 class TestStdoutMatchADotC(expect.StdoutMatch):
42 expect.get_object_filename(f[0]) for f in source_and_object_names
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/
H A Dadapter.rs467 .expect("TlsConfig build error!") in default()
747 .expect("Sets certs error."); in ut_add_root_certificates()
828 .expect("TlsConfig build error."); in ut_tls_ssl()
831 .expect("Ssl build error.") in ut_tls_ssl()
855 .expect("TlsConfig build error."); in ut_tls_ssl_verify_hostname()
860 .expect("Ssl build error.") in ut_tls_ssl_verify_hostname()
862 let stream = TcpStream::connect("huawei.com:443").expect("Tcp stream error."); in ut_tls_ssl_verify_hostname()
863 let mut tls_stream = ssl.connect(stream).expect("Tls stream error."); in ut_tls_ssl_verify_hostname()
867 .expect("Stream write error."); in ut_tls_ssl_verify_hostname()
871 .expect("Strea in ut_tls_ssl_verify_hostname()
[all...]
/third_party/skia/tests/
H A DGrClipStackTest.cpp55 // .expect().rect(r, GrAA::kYes, SkClipOp::kIntersect)
171 ElementsBuilder expect() { return ElementsBuilder(this, &fExpectedElements); } in expect() function in __anon19011::TestCaseBuilder
526 .expect().aa().intersect().rect(fracIntersect).finishElements() in DEF_TEST()
535 .expect().nonAA().intersect().rect(fracIntersect).finishElements() in DEF_TEST()
544 .expect().nonAA().intersect().rect(alignedIntersect).finishElements() in DEF_TEST()
553 .expect().aa().intersect().rect(alignedIntersect).finishElements() in DEF_TEST()
606 .expect().aa().intersect().localToDevice(lm) in DEF_TEST()
616 .expect().nonAA().intersect().localToDevice(lm) in DEF_TEST()
647 .expect().aa().intersect().rrect(intersect).finishElements() in DEF_TEST()
656 .expect() in DEF_TEST()
[all...]
/test/xts/acts/security/huks/security_huks_basic/huks_cipher_callback_BasicTest/entry/src/ohosTest/js/test/Cipher/
H A DSecurityHuksSM4BasicCallbackJsunit.test.js16 import { describe, it, expect, beforeAll } from '@ohos/hypium';
49 expect(data.errorCode == 0).assertTrue();
53 expect(null).assertFail();
76 expect(data.errorCode == 0).assertTrue();
80 expect(null).assertFail();
119 expect(data.errorCode === 0).assertTrue();
123 expect(null).assertFail();
129 expect(null).assertFail();
142 expect(data.errorCode === 0).assertTrue();
148 expect(arrayEqua
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dtranstst.h50 * of the transliterators and expect the identity function. F x
381 void expect(const UnicodeString& rules,
386 void expect(const UnicodeString& id,
392 void expect(const Transliterator& t,
397 void expect(const Transliterator& t,
/third_party/skia/third_party/externals/tint/src/transform/
H A Dvectorize_scalar_matrix_constructors_test.cc64 auto expect = utils::ReplaceAll(tmpl, "${values}", vector_values); in TEST_P() local
68 EXPECT_EQ(expect, str(got)); in TEST_P()
93 auto expect = src; in TEST_P() local
97 EXPECT_EQ(expect, str(got)); in TEST_P()
/test/xts/dcts/distributeddatamgr/jstest/distributed_kv_store/client/hap/src/main/js/test/
H A DKvStoreSecurityLevelS1Jsunit.test.js16 import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
236 expect(result).assertEqual(TEST_STRING_VALUE);
295 expect(result).assertEqual(TEST_STRING_VALUE);
353 expect(result == undefined).assertTrue();
411 expect(result == undefined).assertTrue();
469 expect(result == undefined).assertTrue();
526 expect(result == undefined).assertTrue();
584 expect(result == undefined).assertTrue();
642 expect(result == undefined).assertTrue();
700 expect(resul
[all...]
/test/xts/acts/security/huks/security_huks_reformed_test/huks_cipher_promise_BasicTest/entry/src/ohosTest/js/test/Cipher/
H A DSecurityHuksCipherAESBasicPromiseJsunit.test.js16 import { describe, it, expect, beforeAll } from '@ohos/hypium';
52 expect(null).assertFail();
56 expect(null).assertFail();
70 expect(null).assertFail();
74 expect(null).assertFail();
121 expect(null).assertFail();
125 expect(null).assertFail();
153 expect(null).assertFail();
157 expect(null).assertFail();
170 expect(nul
[all...]
H A DSecurityHuksCipherSM4BasicPromiseJsunit.test.js16 import { describe, it, expect, beforeAll } from '@ohos/hypium';
54 expect(null).assertFail();
58 expect(null).assertFail();
72 expect(null).assertFail();
76 expect(null).assertFail();
107 expect(null).assertFail();
111 expect(null).assertFail();
117 expect(null).assertFail();
138 expect(null).assertFail();
142 expect(nul
[all...]
/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
H A Dtcp_test.rs175 let len = stream.peek(&mut buf).await.expect("peek failed!"); in sdv_tcp_stream_peek()
192 let listener = TcpListener::bind(ADDR).await.expect("Bind Listener Failed"); in sdv_tcp_global_runtime()
206 .expect("client send failed"); in sdv_tcp_global_runtime()
213 .expect("client recv failed"); in sdv_tcp_global_runtime()
221 let (mut socket, _) = listener.accept().await.expect("Bind accept Failed"); in sdv_tcp_global_runtime()
224 match socket.read(&mut buf).await.expect("recv Failed") { in sdv_tcp_global_runtime()
238 .expect("failed to write to socket"); in sdv_tcp_global_runtime()
242 ylong_runtime::block_on(handle).expect("block_on failed"); in sdv_tcp_global_runtime()
308 let n = read_half.read(&mut buf).await.expect("server read err"); in sdv_tcp_split_borrow_half()
316 let n = read_half.read(&mut buf).await.expect("serve in sdv_tcp_split_borrow_half()
[all...]
/third_party/ltp/tools/sparse/sparse-src/
H A Dparse.c625 struct token *expect(struct token *token, int op, const char *where) in expect() function
766 token = expect(token, '}', "at end of specifier"); in struct_union_enum_specifier()
1073 return expect(token, ')', "after typeof"); in typeof_specifier()
1165 token = expect(token, '(', "after address_space attribute"); in attribute_address_space()
1191 token = expect(next, ')', "after address_space attribute"); in attribute_address_space()
1255 token = expect(token, '(', "after mode attribute"); in attribute_mode()
1264 sparse_error(token->pos, "expect attribute mode symbol\n"); in attribute_mode()
1265 token = expect(token, ')', "after mode attribute"); in attribute_mode()
1275 token = expect(token, '(', "after context attribute"); in attribute_context()
1277 token = expect(toke in attribute_context()
[all...]
/foundation/window/window_manager/test/systemtest/wms/
H A Dwindow_immersive_test.cpp74 bool SystemBarPropsEqualsTo(const SystemBarRegionTints& expect);
75 void DumpFailedInfo(const SystemBarRegionTints& expect);
105 void WindowImmersiveTest::DumpFailedInfo(const SystemBarRegionTints& expect) in DumpFailedInfo() argument
109 for (auto tint : expect) { in DumpFailedInfo()
135 bool WindowImmersiveTest::SystemBarPropsEqualsTo(const SystemBarRegionTints& expect) in SystemBarPropsEqualsTo() argument
139 if (act.size() != expect.size()) { in SystemBarPropsEqualsTo()
140 DumpFailedInfo(expect); in SystemBarPropsEqualsTo()
143 for (auto item : expect) { in SystemBarPropsEqualsTo()
152 DumpFailedInfo(expect); in SystemBarPropsEqualsTo()

Completed in 19 milliseconds

1...<<11121314151617181920>>...40