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

Function test_subprotocols

src/runtime.rs:605–611  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

603
604 #[test]
605 fn test_subprotocols() {
606 let sub_proto = test_utils::custom_subprotocol();
607 let super_proto = test_utils::custom_protocol();
608 assert!(sub_proto.conforms_to(super_proto));
609 let adopted_protocols = sub_proto.adopted_protocols();
610 assert_eq!(adopted_protocols[0], super_proto);
611 }
612
613 #[test]
614 fn test_protocols() {

Callers

nothing calls this directly

Calls 3

custom_subprotocolFunction · 0.85
custom_protocolFunction · 0.85
adopted_protocolsMethod · 0.80

Tested by

no test coverage detected