Searched refs:assert_de_tokens (Results 1 – 9 of 9) sorted by relevance
/third_party/rust/crates/serde/test_suite/tests/ |
D | test_identifier.rs | 3 use serde_test::{assert_de_tokens, Token}; 14 assert_de_tokens(&V::Aaa, &[Token::U8(0)]); in test_variant_identifier() 15 assert_de_tokens(&V::Aaa, &[Token::U16(0)]); in test_variant_identifier() 16 assert_de_tokens(&V::Aaa, &[Token::U32(0)]); in test_variant_identifier() 17 assert_de_tokens(&V::Aaa, &[Token::U64(0)]); in test_variant_identifier() 18 assert_de_tokens(&V::Aaa, &[Token::Str("Aaa")]); in test_variant_identifier() 19 assert_de_tokens(&V::Aaa, &[Token::Bytes(b"Aaa")]); in test_variant_identifier() 31 assert_de_tokens(&F::Aaa, &[Token::U8(0)]); in test_field_identifier() 32 assert_de_tokens(&F::Aaa, &[Token::U16(0)]); in test_field_identifier() 33 assert_de_tokens(&F::Aaa, &[Token::U32(0)]); in test_field_identifier() [all …]
|
D | test_macros.rs | 12 assert_de_tokens, assert_de_tokens_error, assert_ser_tokens, assert_tokens, Token, 142 assert_de_tokens( in test_de_named_tuple() 153 assert_de_tokens( in test_de_named_tuple() 198 assert_de_tokens( in test_de_named_map() 465 assert_de_tokens( in test_adjacently_tagged_newtype_struct() 647 assert_de_tokens(&Untagged::C, &[Token::None]); in test_untagged_enum() 714 assert_de_tokens( in test_internally_tagged_enum() 737 assert_de_tokens( in test_internally_tagged_enum() 788 assert_de_tokens( in test_internally_tagged_enum() 828 assert_de_tokens( in test_internally_tagged_bytes() [all …]
|
D | test_borrow.rs | 4 use serde_test::{assert_de_tokens, assert_de_tokens_error, Token}; 10 assert_de_tokens(&"borrowed", &[Token::BorrowedStr("borrowed")]); in test_borrowed_str() 31 assert_de_tokens(&"owned".to_owned(), &[Token::BorrowedStr("owned")]); in test_string_from_borrowed_str() 36 assert_de_tokens(&&b"borrowed"[..], &[Token::BorrowedBytes(b"borrowed")]); in test_borrowed_bytes() 57 assert_de_tokens( in test_tuple() 76 assert_de_tokens( in test_struct() 104 assert_de_tokens(&FieldStr::Str("value"), &[Token::BorrowedStr("value")]); in test_field_identifier() 113 assert_de_tokens( in test_field_identifier()
|
D | test_annotations.rs | 19 assert_de_tokens, assert_de_tokens_error, assert_ser_tokens, assert_ser_tokens_error, 153 assert_de_tokens( in test_default_struct() 180 assert_de_tokens( in test_default_struct() 202 assert_de_tokens( in test_default_tuple() 216 assert_de_tokens( in test_default_tuple() 262 assert_de_tokens( in test_default_struct_variant() 290 assert_de_tokens( in test_default_struct_variant() 313 assert_de_tokens( in test_default_tuple_variant() 328 assert_de_tokens( in test_default_tuple_variant() 362 assert_de_tokens( in test_no_std_default() [all …]
|
D | test_value.rs | 6 use serde_test::{assert_de_tokens, Token}; 83 assert_de_tokens( in test_map_access_to_enum()
|
D | test_de.rs | 36 use serde_test::{assert_de_tokens, Configure, Token}; 156 assert_de_tokens(&value, tokens); in test() 2212 assert_de_tokens(&value, &tokens); in test_osstring() 2232 assert_de_tokens(&value, &tokens); in test_osstring() 2238 assert_de_tokens::<Box<CStr>>( in test_cstr()
|
/third_party/rust/crates/log/src/ |
D | serde.rs | 209 use self::serde_test::{assert_de_tokens, assert_de_tokens_error, assert_tokens, Token}; 289 assert_de_tokens(&s, &expected); in test_level_case_insensitive() 304 assert_de_tokens(&value, &tokens); in test_level_de_bytes() 319 assert_de_tokens(&value, &tokens); in test_level_de_variant_index() 358 assert_de_tokens(&s, &expected); in test_level_filter_case_insensitive() 374 assert_de_tokens(&value, &tokens); in test_level_filter_de_bytes() 390 assert_de_tokens(&value, &tokens); in test_level_filter_de_variant_index()
|
/third_party/rust/crates/serde/serde_test/src/ |
D | assert.rs | 37 assert_de_tokens(value, tokens); in assert_tokens() 154 pub fn assert_de_tokens<'de, T>(value: &T, tokens: &'de [Token]) in assert_de_tokens() function
|
D | lib.rs | 181 assert_de_tokens, assert_de_tokens_error, assert_ser_tokens, assert_ser_tokens_error,
|