/external/rust/crates/idna/tests/ |
D | unit.rs | 12 assert!(config.to_ascii("xn--").is_err()); in test_punycode_prefix_with_length_check() 13 assert!(config.to_ascii("xn---").is_err()); in test_punycode_prefix_with_length_check() 14 assert!(config.to_ascii("xn-----").is_err()); in test_punycode_prefix_with_length_check() 15 assert!(config.to_ascii("xn--.").is_err()); in test_punycode_prefix_with_length_check() 16 assert!(config.to_ascii("xn--...").is_err()); in test_punycode_prefix_with_length_check() 17 assert!(config.to_ascii(".xn--").is_err()); in test_punycode_prefix_with_length_check() 18 assert!(config.to_ascii("...xn--").is_err()); in test_punycode_prefix_with_length_check() 19 assert!(config.to_ascii("xn--.xn--").is_err()); in test_punycode_prefix_with_length_check() 20 assert!(config.to_ascii("xn--.example.org").is_err()); in test_punycode_prefix_with_length_check() 32 assert!(config.to_ascii("xn---").is_err()); in test_punycode_prefix_without_length_check() [all …]
|
/external/rust/crates/futures/tests/ |
D | eventual.rs | 18 assert!(rx.recv().is_err()); in join1() 27 assert!(rx.try_recv().is_err()); in join2() 29 assert!(rx.try_recv().is_err()); in join2() 32 assert!(rx.recv().is_err()); in join2() 41 assert!(rx.try_recv().is_err()); in join3() 44 assert!(rx.recv().is_err()); in join3() 54 assert!(rx.try_recv().is_err()); in join4() 58 assert!(rx.recv().is_err()); in join4() 68 assert!(rx.try_recv().is_err()); in join5() 70 assert!(rx.try_recv().is_err()); in join5() [all …]
|
D | eager_drop.rs | 15 assert!(rx1.recv().is_err()); in map_ok() 37 assert!(rx1.recv().is_err()); in map_err() 79 assert!(rx1.recv().is_err()); // tx1 should have been dropped in then_drops_eagerly() 103 assert!(rx1.recv().is_err()); // tx1 should have been dropped in and_then_drops_eagerly() 127 assert!(rx1.recv().is_err()); // tx1 should have been dropped in or_else_drops_eagerly()
|
/external/rust/crates/macaddr/src/parser/ |
D | tests.rs | 105 assert!(addr.is_err()); in test_parse_v6_empty() 112 assert!(addr.is_err()); in test_parse_v8_empty() 119 assert!(addr.is_err()); in test_parse_empty() 126 assert!(addr.is_err()); in test_parse_v6_partial_start() 133 assert!(addr.is_err()); in test_parse_v8_partial_start() 140 assert!(addr.is_err()); in test_parse_v6_partial_end() 147 assert!(addr.is_err()); in test_parse_v8_partial_end() 154 assert!(addr.is_err()); in test_parse_v6_invalid_char() 161 assert!(addr.is_err()); in test_parse_v8_invalid_char() 168 assert!(addr.is_err()); in test_parse_v6_different_delimiters() [all …]
|
/external/rust/crates/futures/tests_disabled/ |
D | all.rs | 128 assert!(res.is_err()); in smoke_oneshot() 147 assert!(brx.try_recv().is_err()); in select_cancels() 148 assert!(drx.try_recv().is_err()); in select_cancels() 155 assert!(drx.recv().is_err()); in select_cancels() 168 assert!(drx.recv().is_err()); in select_cancels() 182 assert!(res.is_err()); in join_cancels() 184 assert!(drx.recv().is_err()); in join_cancels() 198 assert!(rx.try_recv().is_err()); in join_cancels() 202 assert!(drx.recv().is_err()); in join_cancels() 212 assert!(rx.try_recv().is_err()); in join_incomplete() [all …]
|
/external/rust/crates/rusqlite/src/blob/ |
D | pos_io.rs | 225 assert!(blob.read_at_exact(&mut s, 1).is_err()); in test_pos_io() 236 assert!(blob.read_at_exact(&mut fives, 7).is_err()); in test_pos_io() 237 assert!(blob.read_at_exact(&mut fives, 12).is_err()); in test_pos_io() 238 assert!(blob.read_at_exact(&mut fives, 10).is_err()); in test_pos_io() 239 assert!(blob.read_at_exact(&mut fives, i32::MAX as usize).is_err()); in test_pos_io() 242 .is_err()); in test_pos_io() 253 assert!(blob.write_at(&[100, 99, 98, 97, 96], 6).is_err()); in test_pos_io() 256 .is_err()); in test_pos_io() 259 .is_err()); in test_pos_io() 276 assert!(blob.raw_read_at_exact(&mut s2, 5).is_err()); in test_pos_io()
|
/external/rust/crates/ring/tests/ |
D | aead_tests.rs | 135 assert!(aead::Nonce::try_assume_unique_for_key(&nonce_bytes).is_err()); in test_aead() 312 assert!(aead::UnboundKey::new(aead_alg, &key_data[..(key_len - 1)]).is_err()); in test_aead_key_sizes() 315 assert!(aead::UnboundKey::new(aead_alg, &key_data[..(key_len + 1)]).is_err()); in test_aead_key_sizes() 318 assert!(aead::UnboundKey::new(aead_alg, &key_data[..(key_len / 2)]).is_err()); in test_aead_key_sizes() 321 assert!(aead::UnboundKey::new(aead_alg, &key_data[..(key_len * 2)]).is_err()); in test_aead_key_sizes() 324 assert!(aead::UnboundKey::new(aead_alg, &[]).is_err()); in test_aead_key_sizes() 327 assert!(aead::UnboundKey::new(aead_alg, &[0]).is_err()); in test_aead_key_sizes() 338 assert!(aead::Nonce::try_assume_unique_for_key(&nonce[..(nonce_len - 1)]).is_err()); in test_aead_nonce_sizes() 339 assert!(aead::Nonce::try_assume_unique_for_key(&nonce[..(nonce_len + 1)]).is_err()); in test_aead_nonce_sizes() 340 assert!(aead::Nonce::try_assume_unique_for_key(&nonce[..(nonce_len / 2)]).is_err()); in test_aead_nonce_sizes() [all …]
|
/external/crosvm/devices/src/ |
D | bus.rs | 372 assert!(bus.insert(dummy.clone(), 0x10, 0).is_err()); in bus_insert() 374 assert!(bus.insert(dummy.clone(), 0x0f, 0x10).is_err()); in bus_insert() 375 assert!(bus.insert(dummy.clone(), 0x10, 0x10).is_err()); in bus_insert() 376 assert!(bus.insert(dummy.clone(), 0x10, 0x15).is_err()); in bus_insert() 377 assert!(bus.insert(dummy.clone(), 0x12, 0x15).is_err()); in bus_insert() 378 assert!(bus.insert(dummy.clone(), 0x12, 0x01).is_err()); in bus_insert() 379 assert!(bus.insert(dummy.clone(), 0x0, 0x20).is_err()); in bus_insert() 389 assert!(bus.insert(dummy.clone(), 0x10, 0).is_err()); in bus_insert_full_addr() 391 assert!(bus.insert(dummy.clone(), 0x0f, 0x10).is_err()); in bus_insert_full_addr() 392 assert!(bus.insert(dummy.clone(), 0x10, 0x10).is_err()); in bus_insert_full_addr() [all …]
|
/external/rust/crates/chrono/src/naive/ |
D | datetime.rs | 1577 assert!(from_str(r#""""#).is_err()); in test_decodable_json() 1578 assert!(from_str(r#""2016-07-08""#).is_err()); in test_decodable_json() 1579 assert!(from_str(r#""09:10:48.090""#).is_err()); in test_decodable_json() 1580 assert!(from_str(r#""20160708T091048.090""#).is_err()); in test_decodable_json() 1581 assert!(from_str(r#""2000-00-00T00:00:00""#).is_err()); in test_decodable_json() 1582 assert!(from_str(r#""2000-02-30T00:00:00""#).is_err()); in test_decodable_json() 1583 assert!(from_str(r#""2001-02-29T00:00:00""#).is_err()); in test_decodable_json() 1584 assert!(from_str(r#""2002-02-28T24:00:00""#).is_err()); in test_decodable_json() 1585 assert!(from_str(r#""2002-02-28T23:60:00""#).is_err()); in test_decodable_json() 1586 assert!(from_str(r#""2002-02-28T23:59:61""#).is_err()); in test_decodable_json() [all …]
|
D | time.rs | 1406 assert!(from_str(r#""""#).is_err()); in test_decodable_json() 1407 assert!(from_str(r#""000000""#).is_err()); in test_decodable_json() 1408 assert!(from_str(r#""00:00:61""#).is_err()); in test_decodable_json() 1409 assert!(from_str(r#""00:60:00""#).is_err()); in test_decodable_json() 1410 assert!(from_str(r#""24:00:00""#).is_err()); in test_decodable_json() 1411 assert!(from_str(r#""23:59:59,1""#).is_err()); in test_decodable_json() 1412 assert!(from_str(r#""012:34:56""#).is_err()); in test_decodable_json() 1413 assert!(from_str(r#""hh:mm:ss""#).is_err()); in test_decodable_json() 1414 assert!(from_str(r#"0"#).is_err()); in test_decodable_json() 1415 assert!(from_str(r#"86399"#).is_err()); in test_decodable_json() [all …]
|
/external/rust/crates/zip/src/ |
D | types.rs | 346 assert!(DateTime::from_date_and_time(2000, 1, 1, 24, 0, 0).is_err()); in datetime_bounds() 347 assert!(DateTime::from_date_and_time(2000, 1, 1, 0, 60, 0).is_err()); in datetime_bounds() 348 assert!(DateTime::from_date_and_time(2000, 1, 1, 0, 0, 61).is_err()); in datetime_bounds() 352 assert!(DateTime::from_date_and_time(1979, 1, 1, 0, 0, 0).is_err()); in datetime_bounds() 353 assert!(DateTime::from_date_and_time(1980, 0, 1, 0, 0, 0).is_err()); in datetime_bounds() 354 assert!(DateTime::from_date_and_time(1980, 1, 0, 0, 0, 0).is_err()); in datetime_bounds() 355 assert!(DateTime::from_date_and_time(2108, 12, 31, 0, 0, 0).is_err()); in datetime_bounds() 356 assert!(DateTime::from_date_and_time(2107, 13, 31, 0, 0, 0).is_err()); in datetime_bounds() 357 assert!(DateTime::from_date_and_time(2107, 12, 32, 0, 0, 0).is_err()); in datetime_bounds() 375 .is_err()); in datetime_from_time_bounds() [all …]
|
/external/rust/crates/quiche/src/ |
D | frame.rs | 1185 assert!(Frame::from_bytes(&mut b, packet::Type::ZeroRTT).is_err()); in ack() 1215 assert!(Frame::from_bytes(&mut b, packet::Type::Initial).is_err()); in reset_stream() 1218 assert!(Frame::from_bytes(&mut b, packet::Type::Handshake).is_err()); in reset_stream() 1244 assert!(Frame::from_bytes(&mut b, packet::Type::Initial).is_err()); in stop_sending() 1247 assert!(Frame::from_bytes(&mut b, packet::Type::Handshake).is_err()); in stop_sending() 1274 assert!(Frame::from_bytes(&mut b, packet::Type::ZeroRTT).is_err()); in crypto() 1299 assert!(Frame::from_bytes(&mut b, packet::Type::Initial).is_err()); in new_token() 1302 assert!(Frame::from_bytes(&mut b, packet::Type::ZeroRTT).is_err()); in new_token() 1305 assert!(Frame::from_bytes(&mut b, packet::Type::Handshake).is_err()); in new_token() 1333 assert!(Frame::from_bytes(&mut b, packet::Type::Initial).is_err()); in stream() [all …]
|
D | octets.rs | 705 assert!(b.get_u8().is_err()); in get_u() 706 assert!(b.get_u16().is_err()); in get_u() 707 assert!(b.get_u24().is_err()); in get_u() 708 assert!(b.get_u32().is_err()); in get_u() 709 assert!(b.get_u64().is_err()); in get_u() 742 assert!(b.get_u8().is_err()); in get_u_mut() 743 assert!(b.get_u16().is_err()); in get_u_mut() 744 assert!(b.get_u24().is_err()); in get_u_mut() 745 assert!(b.get_u32().is_err()); in get_u_mut() 746 assert!(b.get_u64().is_err()); in get_u_mut() [all …]
|
/external/rust/crates/structopt/tests/ |
D | subcommands.rs | 75 assert!(result.is_err()); in test_no_parse() 78 assert!(result.is_err()); in test_no_parse() 81 assert!(result.is_err()); in test_no_parse() 184 assert!(result.is_err()); in enum_in_enum_subsubcommand() 187 assert!(result.is_err()); in enum_in_enum_subsubcommand() 206 assert!(Opt::from_iter_safe(&["test"]).is_err()); in flatten_enum() 252 assert!(Opt::from_iter_safe(&["test"]).is_err()); in external_subcommand() 278 assert!(Opt::from_iter_safe(&["test"]).is_err()); in external_subcommand_os_string()
|
D | flags.rs | 31 assert!(Opt::clap().get_matches_from_safe(&["test", "-i"]).is_err()); in unique_flag() 34 .is_err()); in unique_flag() 37 .is_err()); in unique_flag() 40 .is_err()); in unique_flag() 73 assert!(Opt::clap().get_matches_from_safe(&["test", "-i"]).is_err()); in multiple_flag() 76 .is_err()); in multiple_flag()
|
D | arguments.rs | 19 assert!(Opt::clap().get_matches_from_safe(&["test"]).is_err()); in required_argument() 22 .is_err()); in required_argument() 35 .is_err()); in optional_argument() 49 .is_err()); in argument_with_default()
|
D | nested-subcommands.rs | 40 assert!(result.is_err()); in test_no_cmd() 95 assert!(result.is_err()); in test_badinput() 97 assert!(result.is_err()); in test_badinput() 99 assert!(result.is_err()); in test_badinput() 101 assert!(result.is_err()); in test_badinput()
|
/external/rust/crates/grpcio/src/ |
D | metadata.rs | 285 assert!(builder.add_str("key-bin", "value").is_err()); in test_key_check() 287 assert!(builder.add_bytes("key", b"value").is_err()); in test_key_check() 289 assert!(builder.add_str("", "value").is_err()); in test_key_check() 291 assert!(builder.add_str(":key", "value").is_err()); in test_key_check() 292 assert!(builder.add_str("key~", "value").is_err()); in test_key_check() 293 assert!(builder.add_str("ke+y", "value").is_err()); in test_key_check() 295 assert!(builder.add_str("key", "❤").is_err()); in test_key_check() 296 assert!(builder.add_str("key", "\0").is_err()); in test_key_check() 297 assert!(builder.add_str("key", "\n").is_err()); in test_key_check()
|
/external/rust/crates/regex/tests/ |
D | regression.rs | 4 assert!(regex_new!("(*)").is_err()); in invalid_regexes_no_crash() 5 assert!(regex_new!("(?:?)").is_err()); in invalid_regexes_no_crash() 6 assert!(regex_new!("(?)").is_err()); in invalid_regexes_no_crash() 7 assert!(regex_new!("*").is_err()); in invalid_regexes_no_crash() 20 assert!(regex_new!("(?m){1,1}").is_err()); in regression_invalid_repetition_expr()
|
D | test_default.rs | 67 assert!(regex::Regex::new(r"(?-u)\xFF").is_err()); in disallow_non_utf8() 68 assert!(regex::Regex::new(r"(?-u).").is_err()); in disallow_non_utf8() 69 assert!(regex::Regex::new(r"(?-u)[\xFF]").is_err()); in disallow_non_utf8() 70 assert!(regex::Regex::new(r"(?-u)☃").is_err()); in disallow_non_utf8() 75 assert!(regex::Regex::new(r"\0").is_err()); in disallow_octal()
|
/external/rust/crates/async-task/tests/ |
D | panic.rs | 91 assert!(catch_unwind(|| runnable.run()).is_err()); in cancel_during_run() 115 assert!(catch_unwind(|| runnable.run()).is_err()); in run_and_join() 121 assert!(catch_unwind(|| future::block_on(task)).is_err()); in run_and_join() 140 assert!(catch_unwind(|| runnable.run()).is_err()); in try_join_and_run_and_join() 146 assert!(catch_unwind(|| future::block_on(task)).is_err()); in try_join_and_run_and_join() 161 assert!(catch_unwind(|| runnable.run()).is_err()); in join_during_run() 172 assert!(catch_unwind(|| future::block_on(task)).is_err()); in join_during_run() 191 assert!(catch_unwind(|| runnable.run()).is_err()); in try_join_during_run() 218 assert!(catch_unwind(|| runnable.run()).is_err()); in detach_during_run()
|
/external/adhd/cras/client/cras_tests/src/ |
D | arguments.rs | 440 assert!(Command::parse(&["cras_tests"]).is_err()); in parse_command() 441 assert!(Command::parse(&["cras_tests", "capture"]).is_err()); in parse_command() 442 assert!(Command::parse(&["cras_tests", "capture", "input.mp3"]).is_err()); in parse_command() 443 assert!(Command::parse(&["cras_tests", "capture", "input.ogg"]).is_err()); in parse_command() 444 assert!(Command::parse(&["cras_tests", "capture", "input.flac"]).is_err()); in parse_command() 445 assert!(Command::parse(&["cras_tests", "playback"]).is_err()); in parse_command() 446 assert!(Command::parse(&["cras_tests", "loopback"]).is_err()); in parse_command() 447 assert!(Command::parse(&["cras_tests", "loopback", "file.ogg"]).is_err()); in parse_command() 448 assert!(Command::parse(&["cras_tests", "filename.wav"]).is_err()); in parse_command() 449 assert!(Command::parse(&["cras_tests", "filename.wav", "capture"]).is_err()); in parse_command() [all …]
|
/external/rust/crates/crossbeam-channel/tests/ |
D | never.rs | 75 assert!(r.try_recv().is_err()); in try_recv() 78 assert!(r.try_recv().is_err()); in try_recv() 86 assert!(r.recv_timeout(ms(100)).is_err()); in recv_timeout() 91 assert!(r.recv_timeout(ms(100)).is_err()); in recv_timeout()
|
/external/rust/crates/tokio/tests/ |
D | sync_semaphore_owned.rs | 13 assert!(p2.is_err()); in try_acquire() 26 assert!(p2.is_err()); in try_acquire_many() 32 assert!(sem.try_acquire_owned().is_err()); in try_acquire_many() 83 assert!(sem.try_acquire_owned().is_err()); in forget() 105 assert!(sem.try_acquire_owned().is_err()); in stresstest()
|
/external/libese/libese/ |
D | ese.c | 43 ese->error.is_err = false; in ese_open() 60 return ese->error.is_err; in ese_error() 69 ese->error.is_err = true; in ese_set_error() 105 if (ese->error.is_err) { in ese_transceive_sg()
|