()
| 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() { |
nothing calls this directly
no test coverage detected