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

Function test_inline_encoding

src/encode.rs:260–267  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258
259 #[test]
260 fn test_inline_encoding() {
261 let enc = unsafe { Encoding::from_str("C") };
262 assert!(enc.as_str() == "C");
263
264 let enc2 = enc.clone();
265 assert!(enc2 == enc);
266 assert!(enc2.as_str() == "C");
267 }
268
269 #[test]
270 fn test_owned_encoding() {

Callers

nothing calls this directly

Calls 2

from_strFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected