Debian Codegraph @

tests/integration/smol_str.rs

raw symbols SCIP
1 use craterust-analyzer cargo schemars 1.2.2 crate/::preluderust-analyzer cargo schemars 1.2.2 prelude/::*;
2
3 #[cfg(feature = "smol_str02")]
4 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
5 fn smol_str02() {
6 testrust-analyzer cargo schemars 1.2.2 test!!(smol_str02::SmolStr)
7 .assert_identical::<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>()
8 .assert_allows_ser_roundtrip(["".into(), "test".into()])
9 .assert_matches_de_roundtrip(arbitrary_valuesrust-analyzer cargo schemars 1.2.2 test_helper/arbitrary_values().());
10 }
11
12 #[cfg(feature = "smol_str03")]
13 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
14 fn smol_str03rust-analyzer cargo schemars 1.2.2 smol_str/smol_str03().() {
15 testrust-analyzer cargo schemars 1.2.2 test!!(smol_str03rust-analyzer cargo smol_str 0.3.2 crate/::SmolStrrust-analyzer cargo smol_str 0.3.2 SmolStr#)
16 .assert_identicalrust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_identical().::<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>()
17 .assert_allows_ser_roundtriprust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_allows_ser_roundtrip().(["".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), "test".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()])
18 .assert_matches_de_roundtriprust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_matches_de_roundtrip().(arbitrary_valuesrust-analyzer cargo schemars 1.2.2 test_helper/arbitrary_values().());
19 }