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

Function test_ivar

src/runtime.rs:536–545  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

534
535 #[test]
536 fn test_ivar() {
537 let cls = test_utils::custom_class();
538 let ivar = cls.instance_variable("_foo").unwrap();
539 assert!(ivar.name() == "_foo");
540 assert!(ivar.type_encoding() == <u32>::encode());
541 assert!(ivar.offset() > 0);
542
543 let ivars = cls.instance_variables();
544 assert!(ivars.len() > 0);
545 }
546
547 #[test]
548 fn test_method() {

Callers

nothing calls this directly

Calls 3

custom_classFunction · 0.85
instance_variableMethod · 0.80
instance_variablesMethod · 0.80

Tested by

no test coverage detected