(descriptor: &str)
| 117 | } |
| 118 | |
| 119 | fn assert_cannot_parse(descriptor: &str) { |
| 120 | assert!(matches!( |
| 121 | MethodDescriptor::parse(descriptor), |
| 122 | Err(ClassReaderError::InvalidTypeDescriptor(s)) if s == descriptor |
| 123 | )); |
| 124 | } |
| 125 | |
| 126 | #[test] |
| 127 | fn can_parse_primitives() { |
no outgoing calls