Home
last modified time | relevance | path

Searched refs:assert_tokens (Results 1 – 13 of 13) sorted by relevance

/external/rust/crates/bytes/tests/
Dtest_serde.rs4 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/
Dserde.rs4 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/
Dserde.rs6 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/
Dserde.rs7 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/
Dlevel.rs359 use serde_test::{Token, assert_tokens};
364 assert_tokens( in test_statics()
368 assert_tokens( in test_statics()
377 assert_tokens( in test_new()
Dlib.rs852 use serde_test::{Token, assert_tokens};
862 assert_tokens( in test_levels()
/external/rust/crates/uuid/src/
Dserde_support.rs103 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/
Dtinyvec.rs6 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()
Darrayvec.rs4 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/
Dlib.rs180 assert_tokens,
Dassert.rs32 pub fn assert_tokens<'de, T>(value: &T, tokens: &'de [Token]) in assert_tokens() function
/external/rust/crates/log/src/
Dserde.rs209 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/
Dcompact.rs51 serde_test::assert_tokens( in test_serialize_compact()