/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-golang/ |
H A D | main.rs | 158 .expect("unittest executable path") in build_dir() 160 .expect("debug/release directory") in build_dir() 166 build_dir().parent().expect("target directory").to_path_buf() in target_dir() 171 target_dir().parent().expect("project directory").to_path_buf() in project_dir() 202 let paths = fs::read_dir(data_dir()).expect("Please update the Git submodule"); in main()
|
/third_party/python/Lib/test/test_importlib/ |
H A D | test_util.py | 259 def verify(self, module, expect): 268 self.assertEqual(expect, module.__package__) 568 expect = os.path.join('foo', 'bar', 'baz', '__pycache__', 571 expect) 582 expect = os.path.join('foo.bar', '__pycache__', 585 expect) 606 expect = os.path.join('__pycache__', 'foo.{}.pyc'.format(self.tag)) 608 expect) 631 expect = os.path.join('__pycache__', 'foo.{}.pyc'.format(self.tag)) 633 expect) [all...] |
/third_party/rust/crates/clap/tests/builder/ |
H A D | require.rs | 29 assert!(*m.get_one::<bool>("color").expect("defaulted by clap")); in flag_required_2() 30 assert!(*m.get_one::<bool>("flag").expect("defaulted by clap")); in flag_required_2() 168 assert!(*m.get_one::<bool>("some").expect("defaulted by clap")); in group_required_2() 169 assert!(!*m.get_one::<bool>("other").expect("defaulted by clap")); in group_required_2() 170 assert!(*m.get_one::<bool>("flag").expect("defaulted by clap")); in group_required_2() 182 assert!(!*m.get_one::<bool>("some").expect("defaulted by clap")); in group_required_3() 183 assert!(*m.get_one::<bool>("other").expect("defaulted by clap")); in group_required_3() 184 assert!(*m.get_one::<bool>("flag").expect("defaulted by clap")); in group_required_3() 214 assert!(*m.get_one::<bool>("some").expect("defaulted by clap")); in arg_require_group_2() 215 assert!(!*m.get_one::<bool>("other").expect("defaulte in arg_require_group_2() [all...] |
/foundation/distributeddatamgr/relational_store/test/js/rdb/performance/src/ |
H A D | RdbStoreSyncPerf.js | 16 import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect, Assert} from 'deccjsunit/index'; 66 expect(averageTime < BASE_LINE).assertTrue(); 80 expect(averageTime < BASE_LINE).assertTrue(); 94 expect(averageTime < BASE_LINE).assertTrue();
|
/foundation/distributeddatamgr/relational_store/test/js/relationalstore/performance/src/ |
H A D | RdbStoreSyncPerf.js | 16 import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect, Assert} from 'deccjsunit/index'; 64 expect(averageTime < BASE_LINE).assertTrue(); 78 expect(averageTime < BASE_LINE).assertTrue(); 92 expect(averageTime < BASE_LINE).assertTrue();
|
/third_party/icu/icu4c/source/test/cintltst/ |
H A D | nccbtst.h | 50 UBool testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, 55 UBool testConvertToUnicode( const uint8_t *source, int sourcelen, const UChar *expect, int expectlen, 59 UBool testConvertFromUnicodeWithContext(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen, 63 UBool testConvertToUnicodeWithContext( const uint8_t *source, int sourcelen, const UChar *expect, int expectlen,
|
/third_party/rust/crates/bindgen/bindgen/ir/ |
H A D | item_kind.rs | 56 self.as_module().expect("Not a module") in expect_module() 76 self.as_function().expect("Not a function") in expect_function() 105 self.as_type().expect("Not a type") in expect_type() 125 self.as_var().expect("Not a var") in expect_var()
|
/third_party/rust/crates/nix/test/ |
H A D | test_timer.rs | 40 .expect("unable to set signal handler for alarm") in alarm_fires() 52 Timer::new(clockid, sigevent).expect("failed to create timer"); in alarm_fires() 55 timer.set(expiration, flags).expect("could not set timer"); in alarm_fires() 100 sigaction(SIG, &old_handler).expect("unable to reset signal handler"); in alarm_fires()
|
/commonlibrary/rust/ylong_http/ylong_http/src/h2/ |
H A D | decoder.rs | 924 pseudo.method().expect("pseudo.method get failed !"), 930 pseudo.scheme().expect("pseudo.scheme get failed !"), 938 .expect("pseudo.authority get failed !"), 944 pseudo.path().expect("pseudo.path get failed !"), 950 pseudo.status().expect("pseudo.status get failed !"), 1027 let frame_bytes = decode($frame_hex).expect("convert frame hex to bytes failed !"); 1028 let decoded_frames = decoder.decode(frame_bytes.as_slice()).expect("decode frame bytes failed !"); 1034 FrameKind: frames_iter.next().expect("take next frame from iterator failed !"), 1058 let frame_bytes = decode($frame_hex).expect("convert frame hex to bytes failed !"); 1059 let decoded_frames = decoder.decode(frame_bytes.as_slice()).expect("decod [all...] |
/test/xts/acts/security/huks/security_huks_basic/huks_cipher_promise_BasicTest/entry/src/ohosTest/js/test/Cipher/ |
H A D | SecurityHuksCipherSM4BasicPromiseJsunit.test.js | 16 import { describe, it, expect, beforeAll } from '@ohos/hypium';
50 expect(data.errorCode == 0).assertTrue();
54 expect(null).assertFail();
64 expect(data.errorCode == 0).assertTrue();
68 expect(null).assertFail();
94 expect(data.errorCode === 0).assertTrue();
98 expect(null).assertFail();
104 expect(null).assertFail();
117 expect(data.errorCode === 0).assertTrue();
123 expect(arrayEqua [all...] |
/commonlibrary/rust/ylong_http/ylong_http_client/tests/common/ |
H A D | sync_utils.rs | 102 runtime.block_on(shutdown_handle).expect("Runtime wait for server shutdown failed"); 189 runtime.block_on(shutdown_handle).expect("Runtime wait for server shutdown failed"); 228 let handle = $handle_vec.pop().expect("No more handles !"); 282 let mut handle = $handle_vec.pop().expect("No more handles !"); 349 .expect("Request send failed"); 356 .expect(format!("Get response header \"{}\" failed", $resp_n).as_str()) 358 .expect(format!("Convert response header \"{}\"into string failed", $resp_n).as_str()), 368 .expect("Response body read failed");
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/tcp/ |
H A D | split.rs | 148 let n = read_half.read(&mut buf).await.expect("server read err"); in poll_flush() 158 let n = stream.read(&mut buf).await.expect("server read err"); in poll_flush() 195 let n = read_half.read(&mut buf).await.expect("server read err"); in poll_flush() 205 let n = stream.read(&mut buf).await.expect("server read err"); in poll_flush() 247 let n = read_half.read(&mut buf).await.expect("server read err"); in poll_flush() 254 let n = stream.read(&mut buf).await.expect("server read err"); in poll_flush() 297 let n = read_half.read(&mut buf).await.expect("server read err"); in poll_flush() 304 let n = stream.read(&mut buf).await.expect("server read err"); in poll_flush()
|
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/packaging/ |
H A D | _parser.py | 73 name_token = tokenizer.expect( 83 tokenizer.expect("END", expected="end of dependency specifier") 105 url = tokenizer.expect("URL", expected="URL after @").text 109 tokenizer.expect("WS", expected="whitespace after URL") 199 extra_token = tokenizer.expect("IDENTIFIER", expected="extra name after comma") 260 tokenizer.expect("END", expected="end of marker expression") 350 tokenizer.expect("WS", expected="whitespace after 'not'") 351 tokenizer.expect("IN", expected="'in' after 'not'")
|
/third_party/icu/icu4c/source/test/intltest/ |
H A D | incaltst.cpp | 470 UnicodeString expect = CharsToUnicodeString("\\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48" in TestBuddhistFormat() local 475 simpleTest(loc, expect, expectDate, status); in TestBuddhistFormat() 479 UnicodeString expect = CharsToUnicodeString("\\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48" in TestBuddhistFormat() local 484 simpleTest(loc, expect, expectDate, status); in TestBuddhistFormat() 488 UnicodeString expect = CharsToUnicodeString("\\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48" in TestBuddhistFormat() local 493 simpleTest(loc, expect, expectDate, status); in TestBuddhistFormat() 497 UnicodeString expect = CharsToUnicodeString("\\u0E27\\u0E31\\u0E19\\u0E40\\u0E2A\\u0E32\\u0E23\\u0E4C\\u0E17\\u0E35\\u0E48" in TestBuddhistFormat() local 502 simpleTest(loc, expect, expectDate, status); in TestBuddhistFormat() 576 UnicodeString expect = CharsToUnicodeString("\\u5e73\\u621013\\u5e749\\u67088\\u65e5\\u571f\\u66dc\\u65e5"); in TestJapaneseFormat() local 581 simpleTest(loc, expect, expectDat in TestJapaneseFormat() 584 UnicodeString expect = CharsToUnicodeString("\\\\u5e73\\\\u621013\\\\u5e749\\\\u67088\\\\u65e5\\\\u571f\\\\u66dc\\\\u65e5"); TestJapaneseFormat() local 592 UnicodeString expect = CharsToUnicodeString("\\\\u5b89\\\\u6c385\\\\u5e747\\\\u67084\\\\u65e5\\\\u6728\\\\u66dc\\\\u65e5"); TestJapaneseFormat() local 601 UnicodeString expect = CharsToUnicodeString("\\\\u662d\\\\u548c64\\\\u5e741\\\\u67086\\\\u65e5\\\\u91d1\\\\u66dc\\\\u65e5"); TestJapaneseFormat() local 610 UnicodeString expect = CharsToUnicodeString("\\\\u5E73\\\\u6210\\\\u5143\\\\u5E741\\\\u67089\\\\u65E5\\\\u6708\\\\u66DC\\\\u65E5"); TestJapaneseFormat() local 619 UnicodeString expect = CharsToUnicodeString("\\\\u5EB7\\\\u6B632\\\\u5e742\\\\u670829\\\\u65e5\\\\u65e5\\\\u66dc\\\\u65e5"); TestJapaneseFormat() local 1102 simpleTest(const Locale& loc, const UnicodeString& expect, UDate expectDate, UErrorCode& status) simpleTest() argument [all...] |
/commonlibrary/rust/ylong_http/ylong_http_client/tests/ |
H A D | sdv_async_custom_dns_resolver.rs | 58 let handle = handles_vec.pop().expect("No more handles !"); in sdv_client_custom_dns_resolver() 85 .expect("server send order failed !"); in sdv_client_custom_dns_resolver() 87 ylong_runtime::block_on(shutdown_handle).expect("Runtime wait for server shutdown failed"); in sdv_client_custom_dns_resolver()
|
/foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk/rust/tests/ |
H A D | entry.rs | 37 CString::new("ohos.permission.DISTRIBUTED_DATASYNC").expect("permission is invalid"); in init_access_token() 38 let name = CString::new("listen_test").expect("process name is invalid"); in init_access_token() 39 let apl = CString::new("system_core").expect("apl string is invalid"); in init_access_token()
|
/foundation/systemabilitymgr/samgr/interfaces/innerkits/rust/tests/ |
H A D | entry.rs | 39 CString::new("ohos.permission.DISTRIBUTED_DATASYNC").expect("permission is invalid"); in init_access_token() 40 let name = CString::new("listen_test").expect("process name is invalid"); in init_access_token() 41 let apl = CString::new("system_core").expect("apl string is invalid"); in init_access_token()
|
/foundation/systemabilitymgr/samgr/services/samgr/native/test/unittest/rust/service/src/ |
H A D | access_token.rs | 39 CString::new("ohos.permission.DISTRIBUTED_DATASYNC").expect("permission is invalid"); in init_access_token() 40 let name = CString::new("listen_test").expect("process name is invalid"); in init_access_token() 41 let apl = CString::new("system_core").expect("apl string is invalid"); in init_access_token()
|
/foundation/communication/ipc/example/rust_test/server/src/ |
H A D | main.rs | 47 let service = CalcStub::new_remote_stub(CalcService).expect("create CalcService success");
in main() 48 add_service(&service.as_object().expect("get ICalc service failed"),
in main() 49 EXAMPLE_IPC_CALC_SERVICE_ID).expect("add server to samgr failed");
in main()
|
/third_party/rust/crates/libloading/tests/ |
H A D | windows.rs | 19 Library::new("tests/nagisa32.dll").expect("nagisa32.dll") in load_ordinal_lib() 26 Library::new("tests/nagisa64.dll").expect("nagisa64.dll") in load_ordinal_lib() 35 let windows: Symbol<unsafe fn() -> *const i8> = lib.get_ordinal(1).expect("function"); in test_ordinal()
|
/test/xts/acts/security/huks/security_huks_reformed_test/huks_cipher_callback_BasicTest/entry/src/ohosTest/js/test/Cipher/ |
H A D | securityHuksExportSupportJsunit.test.js | 16 import { describe, it, expect, beforeAll } from '@ohos/hypium'; 40 expect(null).assertFail(); 44 expect(null).assertFail(); 59 expect(null).assertFail(); 73 expect(null).assertFail(); 77 expect(null).assertFail(); 92 expect(null).assertFail(); 106 expect(null).assertFail(); 110 expect(null).assertFail(); 125 expect(nul [all...] |
/test/xts/acts/communication/wifi_p2p/entry/src/ohosTest/js/test/ |
H A D | WifiManagerP2PEvent.test.js | 16 import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '@ohos/hypium'
118 expect(true).assertEqual(resultLength!=0);
189 expect(true).assertEqual(resultLength!=0);
192 expect(true).assertEqual(error !=null);
196 expect(true).assertEqual( (JSON.stringify(error.message)) !=null);
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/ |
H A D | cpuset_base_ops_testset.sh | 190 # attach_task_test <cpus> <mems> <expect> 195 local expect=$3 229 if [ $? -eq $expect ]; then 232 tst_resm TFAIL "Attaching Task Test failed!! cpus - \"$cpus\", mems - \"$mems\", Expect - \"$expect\", Fact - \"$ret\". (0 - Attach Success, 1 - Attach Fail)" 248 while read cpus mems expect 250 attach_task_test "$cpus" "$mems" "$expect" 256 # while read cpus mems expect
|
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/parser/ |
H A D | parser_test.go | 27 expect ast.AST 183 gotStr, expectStr := got.String(), test.expect.String() 193 expect string 203 if gotErr := err.Error(); test.expect != gotErr { 204 t.Errorf(`Parse() returned error "%+v", expected error "%+v"`, gotErr, test.expect)
|
/third_party/rust/crates/rust-openssl/openssl-sys/build/ |
H A D | run_bindgen.rs | 144 .expect("Failed to create boring_static_wrapper.h") in run_boringssl() 146 .expect("Failed to write contents to boring_static_wrapper.h"); in run_boringssl() 166 .expect("Failed to create boring_static_wrapper.h") in run_boringssl() 168 .expect("Failed to write contents to boring_static_wrapper.h"); in run_boringssl() 200 let result = bindgen_cmd.status().expect("bindgen failed to execute"); in run_boringssl()
|