MCPcopy Create free account
hub / github.com/SSheldon/rust-objc / test_owned_encoding

Function test_owned_encoding

src/encode.rs:270–278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

268
269 #[test]
270 fn test_owned_encoding() {
271 let s = "{Test=CCCCCCCCCCCCCCCCCCCCCCCCC}";
272 let enc = unsafe { Encoding::from_str(s) };
273 assert!(enc.as_str() == s);
274
275 let enc2 = enc.clone();
276 assert!(enc2 == enc);
277 assert!(enc2.as_str() == s);
278 }
279}

Callers

nothing calls this directly

Calls 2

from_strFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected