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

Function test_custom_class

src/declare.rs:322–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320
321 #[test]
322 fn test_custom_class() {
323 // Registering the custom class is in test_utils
324 let obj = test_utils::custom_object();
325 unsafe {
326 let _: () = msg_send![obj, setFoo:13u32];
327 let result: u32 = msg_send![obj, foo];
328 assert!(result == 13);
329 }
330 }
331
332 #[test]
333 fn test_class_method() {

Callers

nothing calls this directly

Calls 1

custom_objectFunction · 0.85

Tested by

no test coverage detected