MCPcopy Create free account
hub / github.com/andreabergia/rjvm / assert_cannot_parse

Function assert_cannot_parse

reader/src/method_descriptor.rs:119–124  ·  view source on GitHub ↗
(descriptor: &str)

Source from the content-addressed store, hash-verified

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() {

Calls

no outgoing calls