Searched refs:assert_tokens (Results 1 – 13 of 13) sorted by relevance
/external/rust/crates/bytes/tests/ |
D | test_serde.rs | 4 use serde_test::{assert_tokens, Token}; 9 assert_tokens(&b, &[Token::Bytes(b"")]); in test_ser_de_empty() 11 assert_tokens(&b, &[Token::Bytes(b"")]); in test_ser_de_empty() 17 assert_tokens(&b, &[Token::Bytes(b"bytes")]); in test_ser_de() 19 assert_tokens(&b, &[Token::Bytes(b"bytes")]); in test_ser_de()
|
/external/rust/crates/hashlink/tests/ |
D | serde.rs | 4 use serde_test::{assert_tokens, Token}; 10 assert_tokens(&map, &[Token::Map { len: Some(0) }, Token::MapEnd]); in map_serde_tokens_empty() 20 assert_tokens( in map_serde_tokens() 39 assert_tokens(&set, &[Token::Seq { len: Some(0) }, Token::SeqEnd]); in set_serde_tokens_empty() 49 assert_tokens( in set_serde_tokens()
|
/external/rust/crates/hashbrown/tests/ |
D | serde.rs | 6 use serde_test::{assert_tokens, Token}; 16 assert_tokens(&map, &[Token::Map { len: Some(0) }, Token::MapEnd]); in map_serde_tokens_empty() 26 assert_tokens( in map_serde_tokens() 45 assert_tokens(&set, &[Token::Seq { len: Some(0) }, Token::SeqEnd]); in set_serde_tokens_empty() 55 assert_tokens( in set_serde_tokens()
|
/external/rust/crates/linked-hash-map/tests/ |
D | serde.rs | 7 use serde_test::{Token, assert_tokens}; 13 assert_tokens(&map, &[ in test_ser_de_empty() 26 assert_tokens(&map, &[ in test_ser_de()
|
/external/rust/crates/unicode-bidi/src/ |
D | level.rs | 359 use serde_test::{Token, assert_tokens}; 364 assert_tokens( in test_statics() 368 assert_tokens( in test_statics() 377 assert_tokens( in test_new()
|
D | lib.rs | 852 use serde_test::{Token, assert_tokens}; 862 assert_tokens( in test_levels()
|
/external/rust/crates/uuid/src/ |
D | serde_support.rs | 103 serde_test::assert_tokens(&u.readable(), &[Token::Str(uuid_str)]); in test_serialize_readable() 110 serde_test::assert_tokens(&u.compact(), &[Token::Bytes(uuid_bytes)]); in test_serialize_compact()
|
/external/rust/crates/tinyvec/tests/ |
D | tinyvec.rs | 6 use serde_test::{assert_tokens, Token}; 349 assert_tokens(&tv, &[Token::Seq { len: Some(0) }, Token::SeqEnd]); in TinyVec_ser_de_empty() 357 assert_tokens( in TinyVec_ser_de() 376 assert_tokens( in TinyVec_ser_de_heap()
|
D | arrayvec.rs | 4 use serde_test::{assert_tokens, Token}; 424 assert_tokens(&tv, &[Token::Seq { len: Some(0) }, Token::SeqEnd]); in ArrayVec_ser_de_empty() 436 assert_tokens( in ArrayVec_ser_de()
|
/external/rust/crates/serde_test/src/ |
D | lib.rs | 180 assert_tokens,
|
D | assert.rs | 32 pub fn assert_tokens<'de, T>(value: &T, tokens: &'de [Token]) in assert_tokens() function
|
/external/rust/crates/log/src/ |
D | serde.rs | 209 use self::serde_test::{assert_de_tokens, assert_de_tokens_error, assert_tokens, Token}; 274 assert_tokens(&s, &expected); in test_level_ser_de() 342 assert_tokens(&s, &expected); in test_level_filter_ser_de()
|
/external/rust/crates/uuid/src/adapter/ |
D | compact.rs | 51 serde_test::assert_tokens( in test_serialize_compact()
|