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

Function test_protocol_method

src/runtime.rs:596–602  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

594
595 #[test]
596 fn test_protocol_method() {
597 let class = test_utils::custom_class();
598 let result: i32 = unsafe {
599 msg_send![class, addNumber:1 toNumber:2]
600 };
601 assert_eq!(result, 3);
602 }
603
604 #[test]
605 fn test_subprotocols() {

Callers

nothing calls this directly

Calls 1

custom_classFunction · 0.85

Tested by

no test coverage detected