/external/rust/android-crates-io/crates/litrs/src/char/ |
D | tests.rs | 152 assert_err!(CharLit, r"'\x80'", NonAsciiXEscape, 1..5); in invald_ascii_escapes() 153 assert_err!(CharLit, r"'\x81'", NonAsciiXEscape, 1..5); in invald_ascii_escapes() 154 assert_err!(CharLit, r"'\x8a'", NonAsciiXEscape, 1..5); in invald_ascii_escapes() 155 assert_err!(CharLit, r"'\x8F'", NonAsciiXEscape, 1..5); in invald_ascii_escapes() 156 assert_err!(CharLit, r"'\xa0'", NonAsciiXEscape, 1..5); in invald_ascii_escapes() 157 assert_err!(CharLit, r"'\xB0'", NonAsciiXEscape, 1..5); in invald_ascii_escapes() 158 assert_err!(CharLit, r"'\xc3'", NonAsciiXEscape, 1..5); in invald_ascii_escapes() 159 assert_err!(CharLit, r"'\xDf'", NonAsciiXEscape, 1..5); in invald_ascii_escapes() 160 assert_err!(CharLit, r"'\xff'", NonAsciiXEscape, 1..5); in invald_ascii_escapes() 161 assert_err!(CharLit, r"'\xfF'", NonAsciiXEscape, 1..5); in invald_ascii_escapes() [all …]
|
/external/rust/android-crates-io/crates/litrs/src/byte/ |
D | tests.rs | 132 assert_err!(ByteLit, r"b'\a'", UnknownEscape, 2..4); in invald_escapes() 133 assert_err!(ByteLit, r"b'\y'", UnknownEscape, 2..4); in invald_escapes() 134 assert_err!(ByteLit, r"b'\", UnterminatedEscape, 2..3); in invald_escapes() 135 assert_err!(ByteLit, r"b'\x'", UnterminatedEscape, 2..5); in invald_escapes() 136 assert_err!(ByteLit, r"b'\x1'", InvalidXEscape, 2..6); in invald_escapes() 137 assert_err!(ByteLit, r"b'\xaj'", InvalidXEscape, 2..6); in invald_escapes() 138 assert_err!(ByteLit, r"b'\xjb'", InvalidXEscape, 2..6); in invald_escapes() 143 assert_err!(ByteLit, r"b'\u{0}'", UnicodeEscapeInByteLiteral, 2..4); in unicode_escape_not_allowed() 144 assert_err!(ByteLit, r"b'\u{00}'", UnicodeEscapeInByteLiteral, 2..4); in unicode_escape_not_allowed() 145 assert_err!(ByteLit, r"b'\u{b}'", UnicodeEscapeInByteLiteral, 2..4); in unicode_escape_not_allowed() [all …]
|
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/anyhow-1.0.93/tests/ |
D | test_ensure.rs | 75 fn assert_err<T: Debug>(result: impl FnOnce() -> Result<T>, expected: &'static str) { in assert_err() function 127 assert_err(test, "Condition failed: `false == true && false`"); in test_low_precedence_binary_operator() 131 assert_err( in test_low_precedence_binary_operator() 139 assert_err(test, "Condition failed: `a <= b || a - b <= 10`"); in test_low_precedence_binary_operator() 147 assert_err(test, "Condition failed: `a - b <= 10` (12 vs 10)"); in test_high_precedence_binary_operator() 156 assert_err(test, "Condition failed: `S + move || 1 == 1`"); in test_closure() 159 assert_err(test, "Condition failed: `S + || 1 == 1`"); in test_closure() 164 assert_err(test, "Condition failed: `S + move |()| 1 == 1`"); in test_closure() 167 assert_err(test, "Condition failed: `S + |()| 1 == 1`"); in test_closure() 174 assert_err(test, "Condition failed: `*x == 2` (1 vs 2)"); in test_unary() [all …]
|
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/anyhow-1.0.93/tests/ |
D | test_ensure.rs | 75 fn assert_err<T: Debug>(result: impl FnOnce() -> Result<T>, expected: &'static str) { in assert_err() function 127 assert_err(test, "Condition failed: `false == true && false`"); in test_low_precedence_binary_operator() 131 assert_err( in test_low_precedence_binary_operator() 139 assert_err(test, "Condition failed: `a <= b || a - b <= 10`"); in test_low_precedence_binary_operator() 147 assert_err(test, "Condition failed: `a - b <= 10` (12 vs 10)"); in test_high_precedence_binary_operator() 156 assert_err(test, "Condition failed: `S + move || 1 == 1`"); in test_closure() 159 assert_err(test, "Condition failed: `S + || 1 == 1`"); in test_closure() 164 assert_err(test, "Condition failed: `S + move |()| 1 == 1`"); in test_closure() 167 assert_err(test, "Condition failed: `S + |()| 1 == 1`"); in test_closure() 174 assert_err(test, "Condition failed: `*x == 2` (1 vs 2)"); in test_unary() [all …]
|
/external/rust/android-crates-io/crates/anyhow/tests/ |
D | test_ensure.rs | 76 fn assert_err<T: Debug>(result: impl FnOnce() -> Result<T>, expected: &'static str) { in assert_err() function 128 assert_err(test, "Condition failed: `false == true && false`"); in test_low_precedence_binary_operator() 132 assert_err( in test_low_precedence_binary_operator() 140 assert_err(test, "Condition failed: `a <= b || a - b <= 10`"); in test_low_precedence_binary_operator() 148 assert_err(test, "Condition failed: `a - b <= 10` (12 vs 10)"); in test_high_precedence_binary_operator() 157 assert_err(test, "Condition failed: `S + move || 1 == 1`"); in test_closure() 160 assert_err(test, "Condition failed: `S + || 1 == 1`"); in test_closure() 165 assert_err(test, "Condition failed: `S + move |()| 1 == 1`"); in test_closure() 168 assert_err(test, "Condition failed: `S + |()| 1 == 1`"); in test_closure() 175 assert_err(test, "Condition failed: `*x == 2` (1 vs 2)"); in test_unary() [all …]
|
/external/rust/android-crates-io/crates/litrs/src/string/ |
D | tests.rs | 206 assert_err!(StringLit, r#"""#, UnterminatedString, None); in parse_err() 207 assert_err!(StringLit, r#""犬"#, UnterminatedString, None); in parse_err() 208 assert_err!(StringLit, r#""Jürgen"#, UnterminatedString, None); in parse_err() 209 assert_err!(StringLit, r#""foo bar baz"#, UnterminatedString, None); in parse_err() 211 assert_err!(StringLit, r#""fox"peter""#, InvalidSuffix, 5); in parse_err() 212 assert_err!(StringLit, r###"r#"foo "# bar"#"###, UnexpectedChar, 9); in parse_err() 214 assert_err!(StringLit, "\"\r\"", IsolatedCr, 1); in parse_err() 215 assert_err!(StringLit, "\"fo\rx\"", IsolatedCr, 3); in parse_err() 216 assert_err!(StringLit, "r\"\r\"", IsolatedCr, 2); in parse_err() 217 assert_err!(StringLit, "r\"fo\rx\"", IsolatedCr, 4); in parse_err() [all …]
|
/external/rust/android-crates-io/crates/litrs/src/bytestr/ |
D | tests.rs | 167 assert_err!(ByteStringLit, r#"b""#, UnterminatedString, None); in parse_err() 168 assert_err!(ByteStringLit, r#"b"cat"#, UnterminatedString, None); in parse_err() 169 assert_err!(ByteStringLit, r#"b"Jurgen"#, UnterminatedString, None); in parse_err() 170 assert_err!(ByteStringLit, r#"b"foo bar baz"#, UnterminatedString, None); in parse_err() 172 assert_err!(ByteStringLit, r#"b"fox"peter""#, InvalidSuffix, 6); in parse_err() 173 assert_err!(ByteStringLit, r###"br#"foo "# bar"#"###, UnexpectedChar, 10); in parse_err() 175 assert_err!(ByteStringLit, "b\"\r\"", IsolatedCr, 2); in parse_err() 176 assert_err!(ByteStringLit, "b\"fo\rx\"", IsolatedCr, 4); in parse_err() 178 assert_err!(ByteStringLit, r##"br####""##, UnterminatedRawString, None); in parse_err() 179 assert_err!(ByteStringLit, r#####"br##"foo"#bar"#####, UnterminatedRawString, None); in parse_err() [all …]
|
/external/rust/android-crates-io/crates/litrs/src/integer/ |
D | tests.rs | 249 assert_err!(IntegerLit, "", Empty, None); in parse_err() 253 assert_err!(IntegerLit, "0b", NoDigits, 2..2); in parse_err() 256 assert_err!(IntegerLit, "0b3", InvalidDigit, 2); in parse_err() 259 assert_err!(IntegerLit, "0x44.5", UnexpectedChar, 4..6); in parse_err() 265 assert_err!(IntegerLit, "0b10201", InvalidDigit, 4); in invalid_digits() 266 assert_err!(IntegerLit, "0b9", InvalidDigit, 2); in invalid_digits() 267 assert_err!(IntegerLit, "0b07", InvalidDigit, 3); in invalid_digits() 269 assert_err!(IntegerLit, "0o12380", InvalidDigit, 5); in invalid_digits() 270 assert_err!(IntegerLit, "0o192", InvalidDigit, 3); in invalid_digits() 278 assert_err!(IntegerLit, "0x_", NoDigits, 2..3); in no_valid_digits() [all …]
|
/external/rust/android-crates-io/crates/litrs/src/float/ |
D | tests.rs | 202 assert_err!(FloatLit, "", Empty, None); in parse_err() 208 assert_err!(FloatLit, "0e", NoExponentDigits, 1..2); in parse_err() 219 assert_err!(FloatLit, "1e", NoExponentDigits, 1..2); in parse_err() 220 assert_err!(FloatLit, "1.e4", UnexpectedChar, 2); in parse_err() 221 assert_err!(FloatLit, "3._4", UnexpectedChar, 2); in parse_err() 222 assert_err!(FloatLit, "3.f32", UnexpectedChar, 2); in parse_err() 223 assert_err!(FloatLit, "3.e5", UnexpectedChar, 2); in parse_err() 224 assert_err!(FloatLit, "12345._987", UnexpectedChar, 6); in parse_err() 225 assert_err!(FloatLit, "46._", UnexpectedChar, 3); in parse_err() 226 assert_err!(FloatLit, "46.f32", UnexpectedChar, 3); in parse_err() [all …]
|
/external/rust/android-crates-io/crates/tokio-test/src/ |
D | macros.rs | 97 use tokio_test::{assert_ready, assert_err}; 99 assert_err!(val) 102 use tokio_test::{assert_ready, assert_err}; 104 assert_err!(val, $($msg)*) 243 macro_rules! assert_err { macro 245 assert_err!($e,);
|
/external/rust/android-crates-io/crates/tokio/tests/ |
D | io_driver_drop.rs | 6 use tokio_test::{assert_err, assert_pending, assert_ready, task}; 22 assert_err!(listener.accept().await); in tcp_doesnt_block() 40 assert_err!(listener.accept().await); in drop_wakes()
|
D | net_unix_pipe.rs | 7 use tokio_test::{assert_err, assert_ok, assert_pending, assert_ready_ok}; 80 let err = assert_err!(pipe::OpenOptions::new().open_sender(&fifo)); in fifo_simple_send_sender_first() 124 let err = assert_err!(reader.read_exact(&mut read_data).await); in fifo_multiple_writes() 181 let err = assert_err!(pipe::OpenOptions::new().open_sender(&path)); in open_detects_not_a_fifo() 185 let err = assert_err!(pipe::OpenOptions::new().open_sender(&path)); in open_detects_not_a_fifo() 242 let err = assert_err!(pipe::Sender::from_file(file)); in from_file_detects_not_a_fifo() 247 let err = assert_err!(pipe::Receiver::from_file(file)); in from_file_detects_not_a_fifo() 266 let err = assert_err!(pipe::Receiver::from_file(wronly)); in from_file_detects_wrong_access_mode() 274 let err = assert_err!(pipe::Sender::from_file(rdonly)); in from_file_detects_wrong_access_mode()
|
D | process_issue_2174.rs | 17 use tokio_test::assert_err; 45 assert_err!(handle.await); in issue_2174()
|
D | sync_mpsc.rs | 449 assert_err!(tx.try_send(1337)); in send_recv_buffer_limited() 466 assert_err!(tx.send(1).await); in recv_close_gets_none_idle() 511 match assert_err!(tx.try_send("fail")) { in try_send_fail() 532 match assert_err!(tx.try_send("fail")) { in try_send_fail_with_try_recv() 551 assert_err!(tx.reserve_many(2).await); in reserve_many_above_cap() 552 assert_err!(tx.reserve_many(MAX_PERMITS + 1).await); in reserve_many_above_cap() 553 assert_err!(tx.reserve_many(usize::MAX).await); in reserve_many_above_cap() 571 assert_err!(tx.try_reserve_many(0)), in try_reserve_many_zero() 590 assert_err!(tx.reserve_many(0).await); in reserve_many_zero() 603 match assert_err!(permit) { in try_reserve_many_edge_cases() [all …]
|
D | sync_oneshot.rs | 81 assert_err!(tx.send(1)); in close_rx() 96 assert_err!(tx.into_inner().send(1)); in close_rx() 137 assert_err!(tx.into_inner().send(1)); in explicit_close_poll() 180 assert_err!(rx.try_recv()); in explicit_close_try_recv() 192 assert_err!(rx.try_recv()); in close_try_recv_poll()
|
D | io_async_fd.rs | 22 use tokio_test::{assert_err, assert_pending}; 600 assert_err!(futures::executor::block_on(readable)); in driver_shutdown_wakes_currently_pending() 603 assert_err!(futures::executor::block_on(afd_a.readable())); in driver_shutdown_wakes_currently_pending() 619 assert_err!(futures::executor::block_on(afd_a.readable())); in driver_shutdown_wakes_future_pending() 641 assert_err!(futures::executor::block_on(afd_a.readable())); in driver_shutdown_wakes_pending_race() 672 assert_err!(futures::executor::block_on(readable)); in driver_shutdown_wakes_currently_pending_polls() 673 assert_err!(futures::executor::block_on(writable)); in driver_shutdown_wakes_currently_pending_polls() 689 assert_err!(futures::executor::block_on(poll_readable(&afd_a))); in driver_shutdown_wakes_poll() 690 assert_err!(futures::executor::block_on(poll_writable(&afd_a))); in driver_shutdown_wakes_poll() 729 assert_err!(futures::executor::block_on(poll_readable(&afd_a))); in driver_shutdown_wakes_poll_race() [all …]
|
D | macros_test.rs | 99 use tokio_test::assert_err; 116 assert_err!(rt); in unhandled_panic_ignore()
|
D | io_write_all_buf.rs | 5 use tokio_test::{assert_err, assert_ok}; 91 assert_err!(wr.write_all_buf(&mut buf).await); in write_buf_err()
|
D | fs_dir.rs | 5 use tokio_test::{assert_err, assert_ok}; 40 assert_err!( in build_dir()
|
D | sync_broadcast.rs | 11 assert_err, assert_ok, assert_pending, assert_ready, assert_ready_err, assert_ready_ok, 37 match assert_err!($e) { 48 match assert_err!($e) { 268 assert_err!(tx.send("hello")); in send_no_rx() 317 assert_err!(res); in panic_in_clone()
|
/external/rust/android-crates-io/crates/tokio/src/sync/tests/ |
D | loom_broadcast.rs | 7 use tokio_test::{assert_err, assert_ok}; 64 match assert_err!(rx1.recv().await) { in broadcast_two() 79 match assert_err!(rx2.recv().await) { in broadcast_two() 161 match assert_err!(rx1.recv().await) { in drop_rx()
|
D | semaphore_batch.rs | 125 assert_err!(s.try_acquire(1)); in try_acquire_one_unavailable() 144 assert_err!(s.try_acquire(5)); in try_acquire_many_unavailable()
|
/external/rust/android-crates-io/crates/xml-rs/src/reader/ |
D | lexer.rs | 670 macro_rules! assert_err( macro 1035 assert_err!(for lex and buf expect row $r ; $c, "Unexpected end of stream"); in end_of_stream_handling_error() 1053 assert_err!(for lex and buf expect row 0 ; 0, in error_in_comment_or_cdata_prefix() 1070 assert_err!(for lex and buf expect row 0 ; 0, in error_in_comment_started() 1089 assert_err!(for lex and buf expect row 0; 0, in error_in_comment_two_dashes_not_at_end() 1104 assert_err!(for lex and buf expect row $r ; $c, $s);
|
/external/rust/android-crates-io/crates/tokio-util/tests/ |
D | length_delimited.rs | 6 assert_err, assert_ok, assert_pending, assert_ready, assert_ready_err, assert_ready_ok, 608 assert_err!(io.as_mut().start_send(Bytes::from("abcdef"))); in write_max_frame_len() 631 assert_err!(io.as_mut().start_send(Bytes::from("abcdef"))); in write_update_max_frame_len_at_rest() 658 assert_err!(io.as_mut().start_send(Bytes::from("abcdef"))); in write_update_max_frame_len_in_flight()
|
/external/rust/android-crates-io/crates/litrs/src/ |
D | test_util.rs | 89 macro_rules! assert_err { macro
|