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

Function test_protocol

src/runtime.rs:586–593  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

584
585 #[test]
586 fn test_protocol() {
587 let proto = test_utils::custom_protocol();
588 assert!(proto.name() == "CustomProtocol");
589 let class = test_utils::custom_class();
590 assert!(class.conforms_to(proto));
591 let class_protocols = class.adopted_protocols();
592 assert!(class_protocols.len() > 0);
593 }
594
595 #[test]
596 fn test_protocol_method() {

Callers

nothing calls this directly

Calls 3

custom_protocolFunction · 0.85
custom_classFunction · 0.85
adopted_protocolsMethod · 0.80

Tested by

no test coverage detected