MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / assert_str_properties

Function assert_str_properties

crates/data-structures/src/slim_slice.rs:1706–1719  ·  view source on GitHub ↗
(a: &SlimStr<'_>, b: &SlimStr<'_>)

Source from the content-addressed store, hash-verified

1704 }
1705
1706 fn assert_str_properties(a: &SlimStr<'_>, b: &SlimStr<'_>) {
1707 assert_eq!(a.deref(), TEST_STR);
1708 assert_eq!(SlimStrBox::from(a).clone().deref(), TEST_STR);
1709 assert_eq!(b.deref(), TEST_STR2);
1710
1711 assert_eq!(String::from(a), TEST_STR);
1712 assert_eq!(<Box<str>>::from(a).deref(), TEST_STR);
1713 assert_eq!(SlimStrBox::from(a).deref(), TEST_STR);
1714 assert_eq!(String::from(SlimStrBox::from(a)).deref(), TEST_STR);
1715 assert_eq!(<Box<str>>::from(SlimStrBox::from(a)).deref(), TEST_STR);
1716
1717 general_properties(a, b, TEST_STR, TEST_STR2);
1718 display_properties(a, b, TEST_STR, TEST_STR2);
1719 }
1720
1721 #[test]
1722 fn str_call() {

Callers 3

str_callFunction · 0.85
str_try_intoFunction · 0.85
str_shared_ref_variousFunction · 0.85

Calls 2

general_propertiesFunction · 0.85
display_propertiesFunction · 0.85

Tested by 3

str_callFunction · 0.68
str_try_intoFunction · 0.68
str_shared_ref_variousFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…