Home
last modified time | relevance | path

Searched refs:expect (Results 526 - 550 of 993) sorted by relevance

1...<<21222324252627282930>>...40

/test/xts/acts/security/huks/security_huks_reformed_test/huks_cipher_promise_BasicTest/entry/src/ohosTest/js/test/Cipher/
H A DSecurityHuksCipherRSABasicPromiseJsunit.test.js16 import { describe, it, expect } from '@ohos/hypium';
72 expect(null).assertFail();
76 expect(null).assertFail();
90 expect(null).assertFail();
94 expect(null).assertFail();
108 expect(null).assertFail();
112 expect(null).assertFail();
123 expect(data.challenge == undefined).assertTrue();
127 expect(null).assertFail();
131 expect(nul
[all...]
/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/test/unittest/
H A Devent_controller_test.cpp37 static void AssertResType(uint32_t &actual, uint32_t &expect) in AssertResType() argument
39 EXPECT_TRUE(actual == expect) << "Dispatch resType should be " + std::to_string(expect) in AssertResType()
42 static void AssertValue(int64_t &actual, int64_t &expect) in AssertValue() argument
44 EXPECT_TRUE(actual == expect) << "Dispatch value should be " + std::to_string(expect) in AssertValue()
/foundation/communication/dsoftbus/tests/core/common/utils/unittest/
H A Dsoftbus_utils_test.cpp184 const unsigned char expect[5] = "ABCD"; in HWTEST_F() local
186 EXPECT_EQ(expect[i], outBuf[i]); in HWTEST_F()
234 const char *expect = "61626364"; in HWTEST_F() local
235 EXPECT_STREQ(expect, outBuf); in HWTEST_F()
329 const char *expect = "65:66:67:68:69:6a"; in HWTEST_F() local
330 EXPECT_STREQ(expect, strMac); in HWTEST_F()
/third_party/rust/crates/clap/tests/builder/
H A Dpositionals.rs33 assert!(*matches.get_one::<bool>("exact").expect("defaulted by clap")); in issue_946()
51 assert!(*m.get_one::<bool>("flag").expect("defaulted by clap")); in positional()
67 assert!(*m.get_one::<bool>("flag").expect("defaulted by clap")); in positional()
130 assert!(*m.get_one::<bool>("flag").expect("defaulted by clap")); in positional_multiple()
154 assert!(*m.get_one::<bool>("flag").expect("defaulted by clap")); in positional_multiple_3()
185 assert!(*m.get_one::<bool>("flag").expect("defaulted by clap")); in positional_possible_values()
/test/xts/acts/storage/storageenvironmentjstest/entry/src/ohosTest/js/test/
H A DCommon.js18 import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
38 expect,
/third_party/rust/crates/clap/examples/tutorial_builder/
H A D02_app_settings.rs12 matches.get_one::<String>("two").expect("required") in main()
16 matches.get_one::<String>("one").expect("required") in main()
H A D02_apps.rs14 matches.get_one::<String>("two").expect("required") in main()
18 matches.get_one::<String>("one").expect("required") in main()
/third_party/skia/third_party/externals/swiftshader/tests/regres/cov/
H A Dcoverage_test.go301 func checkSpans(t *testing.T, got []cov.Span, expect ...cov.Span) {
302 if !reflect.DeepEqual(got, expect) {
303 t.Errorf("Spans not as expected.\nGot: %+v\nExpect: %+v", got, expect)
307 func checkGroups(t *testing.T, got, expect map[cov.SpanGroupID]cov.SpanGroup) {
308 if !reflect.DeepEqual(got, expect) {
309 t.Errorf("SpanGroupss not as expected.\nGot: %+v\nExpect: %+v", got, expect)
313 func checkTests(t *testing.T, tree *cov.Tree, expect string) {
314 g, e := tree.Tests().String(tree.Strings()), expect
320 func checkCoverage(t *testing.T, tree *cov.Tree, file string, expect string) {
321 g, e := tree.FileCoverage(file).String(tree.Tests(), tree.Strings()), expect
[all...]
/commonlibrary/c_utils/base/test/unittest/rust/
H A Drust_utils_file_test.rs55 let file = File::open(&filename).expect("Failed to open file"); in test_load_string_from_file_001()
131 let file = File::open(&filename).expect("Failed to open file"); in test_load_string_from_fd_002()
144 let file = File::open(&filename).expect("Failed to open file"); in test_load_string_from_fd_003()
157 let file = File::open(&filename).expect("Failed to open file"); in test_load_string_from_fd_004()
170 let file = File::open(&filename).expect("Failed to open file"); in test_load_string_from_fd_005()
185 let file = File::open(&filename).expect("Failed to open file"); in test_load_string_from_fd_006()
289 let mut file = File::create_new(&filename).expect("Failed to create file"); in test_save_string_to_fd_002()
295 file = File::open(&filename).expect("Failed to open file"); in test_save_string_to_fd_002()
307 let mut file = File::create_new(&filename).expect("Failed to create file"); in test_save_string_to_fd_003()
313 file = File::open(&filename).expect("Faile in test_save_string_to_fd_003()
[all...]
/third_party/python/Lib/test/
H A Dtest_bdb.py70 # When 'dry_run' is set to true, expect tuples are ignored and the actual
244 self.expect = self.expected_list.pop(0)
272 if self.expect:
273 self.check_equal(self.expect[0], event, 'Wrong event type')
278 elif len(self.expect) > 3:
280 bps, temporaries = self.expect[3]
296 if not isinstance(self.exc_info[1], self.expect[3]):
309 s = len(self.expect)
312 self.check_equal(self.expect[1], lineno, 'Wrong line number')
314 self.check_equal(self.expect[
[all...]
H A Dtest_launcher.py326 expect = {}
336 expect[arg] = company_data[tag]["DisplayName"]
337 expect.pop(f"-V:{company}/ignored", None)
339 actual = {k: v for k, v in found.items() if k in expect}
341 self.assertDictEqual(expect, actual)
351 expect = {}
363 expect[arg] = install["ExecutablePath"]
365 expect[arg] += " " + install["ExecutableArguments"]
369 expect[arg] = str(Path(install[None]) / Path(sys.executable).name)
371 expect
[all...]
/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fNegativeShaderDirectiveTests.cpp47 void verifyProgram(NegativeTestContext& ctx, glu::ProgramSources sources, ExpectResult expect) in verifyProgram() argument
49 DE_ASSERT(expect >= EXPECT_RESULT_PASS && expect < EXPECT_RESULT_LAST); in verifyProgram()
58 if (expect == EXPECT_RESULT_PASS) in verifyProgram()
76 void verifyShader(NegativeTestContext& ctx, glu::ShaderType shaderType, std::string shaderSource, ExpectResult expect) in verifyShader() argument
78 DE_ASSERT(expect >= EXPECT_RESULT_PASS && expect < EXPECT_RESULT_LAST); in verifyShader()
92 if (expect == EXPECT_RESULT_PASS) in verifyShader()
/third_party/node/test/parallel/
H A Dtest-stream-unshift-empty-chunk.js57 const expect =
78 assert.deepStrictEqual(seen, expect);
/third_party/icu/icu4c/source/test/cintltst/
H A Dncnvfbts.h25 static UBool testConvertFromUnicode(const UChar *source, int sourceLen, const uint8_t *expect, int expectLen,
27 static UBool testConvertToUnicode( const uint8_t *source, int sourcelen, const UChar *expect, int expectlen,
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_mainmenu.py13 expect = ['file', 'edit', 'format', 'run', 'shell',
15 self.assertEqual(actual, expect)
/third_party/rust/crates/rustix/tests/process/
H A Dwait.rs17 .expect("failed to execute child"); in test_waitpid()
22 .expect("failed to wait") in test_waitpid()
/third_party/rust/crates/syn/tests/common/
H A Dmod.rs13 Ok(s) => s.parse().expect("failed to parse ABORT_AFTER_FAILURE"), in abort_after()
21 Ok(s) => s.parse().expect("failed to parse RUST_MIN_STACK"), in rayon_init()
/third_party/icu/icu4c/source/test/perf/howExpensiveIs/
H A DhowExpensiveIs.cpp290 NumTest(const char *pat, const char *num, double expect, const char *FILE, int LINE) in NumTest() argument
292 fExpect(expect), in NumTest()
342 AttrNumTest(const char *pat, const char *num, double expect, const char *FILE, int LINE, UNumberFormatAttribute attr, int32_t newValue) in AttrNumTest() argument
343 : NumTest(pat,num,expect,FILE,LINE), in AttrNumTest()
370 NOXNumTest(const char *pat, const char *num, double expect, const char *FILE, int LINE /*, UNumberFormatAttribute attr, int32_t newValue */) in NOXNumTest() argument
371 : NumTest(pat,num,expect,FILE,LINE) /* , in NOXNumTest()
418 NumFmtTest(const char *pat, const char *num, double expect, const char *FILE, int LINE) in NumFmtTest() argument
420 fExpect(expect), in NumFmtTest()
541 NumFmtInt64Test(const char *pat, const char *num, int64_t expect, const char *FILE, int LINE, EMode mode) in NumFmtInt64Test() argument
544 fExpect(expect), in NumFmtInt64Test()
633 NumFmtStringPieceTest(const char *pat, const char *num, const StringPiece& expect, const char *FILE, int LINE) NumFmtStringPieceTest() argument
[all...]
/third_party/mksh/
H A Dcheck.pl122 # default is to expect no output.
126 # default is to expect no output.
801 local($name, $file, $what, $expect, $expect_pat) = @_;
815 return compare_output($name, $what, $expect, $expect_pat, $got);
821 local($name, $what, $expect, $expect_pat, $got) = @_;
838 $expect = '' if !defined $expect;
839 if ($got ne $expect) {
840 $why .= "\tunexpected $what - " . &first_diff($expect, $got) . "\n";
842 $why .= &wrap_lines($expect);
[all...]
/third_party/rust/crates/bindgen/bindgen/ir/
H A Dty.rs251 let name = self.name().expect("Unnamed named type?"); in is_invalid_type_param()
297 .expect("Should have been resolved after parsing!") in canonical_type()
821 .expect("C'mon"); in from_clang_ty()
847 // * We expect every other base that is a in from_clang_ty()
920 .expect("Not valid Type?"); in from_clang_ty()
932 .expect( in from_clang_ty()
1059 let pointee = ty.pointee_type().expect("Not valid Type?"); in from_clang_ty()
1083 .expect("Not able to resolve array element?"); in from_clang_ty()
1093 .expect("Not able to resolve array element?"); in from_clang_ty()
1101 let inner = cursor.typedef_type().expect("No in from_clang_ty()
[all...]
/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/
H A Dmime_test_macro.rs34 .expect("MimePart build failed")
76 let size = sync_impl::Body::data(&mut part_encoder, &mut buf).expect("MimePart encode failed");
123 let size = async_impl::Body::data(&mut part_encoder, &mut buf).await.expect("MimePart encode failed");
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/dns/
H A Dresolver.rs126 .expect("dns resolver resolve domain occurs err"); in ut_resolver_std_dns_resolver_resolve()
150 .expect("Build runtime failed."); in ut_resolver_std_dns_resolver_resolve()
156 .expect("dns resolver resolve domain occurs err"); in ut_resolver_std_dns_resolver_resolve()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/time/
H A Ddriver.rs82 .expect("waker taken from the clock is none")
93 .expect("driver's start time is later than the current time")
124 .expect("waker taken from the clock is none")
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/base/
H A Datomics.h114 long expect = 0; in Lock() local
115 while (!__atomic_compare_exchange(&lock_, &expect, &taken, false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)) { in Lock()
116 expect = 0; in Lock()
/foundation/communication/dsoftbus/tests/core/connection/manager/
H A Dconnection_flow_control_test.cpp66 int32_t expect = 512; in HWTEST_F() local
68 auto value = controller->apply(controller, expect); in HWTEST_F()
70 EXPECT_EQ(value, expect); in HWTEST_F()

Completed in 15 milliseconds

1...<<21222324252627282930>>...40