Macro cargo_test_support::str

macro_rules! str {
    ($data:literal) => { ... };
    ([$data:literal]) => { ... };
    () => { ... };
    ([]) => { ... };
}
Expand description

Declare an expected value from within Rust source

str![["
    Foo { value: 92 }
"]];
str![r#"{"Foo": 92}"#];

Leading indentation is stripped.

See [Inline::is] for declaring the data to be of a certain format.