Crate serde_test [] [src]

Structs

Deserializer

A Deserializer that reads from a list of tokens.

Serializer

A Serializer that ensures that a value serializes to a given list of tokens.

Enums

Error

Error returned by the test Serializer and Deserializer.

Token

Functions

assert_de_tokens

Asserts that the given tokens deserialize into value.

assert_de_tokens_error

Asserts that the given tokens yield error when deserializing.

assert_ser_tokens

Asserts that value serializes to the given tokens.

assert_ser_tokens_error

Asserts that value serializes to the given tokens, and then yields error.

assert_tokens

Runs both assert_ser_tokens and assert_de_tokens.