MCPcopy Create free account
hub / github.com/davidblewett/rure-python / capture_index_panic_usize

Function capture_index_panic_usize

regex/tests/api.rs:97–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95#[should_panic]
96#[cfg_attr(all(target_env = "msvc", target_pointer_width = "32"), ignore)]
97fn capture_index_panic_usize() {
98 let re = regex!(r"^(?P<name>.+)$");
99 let cap = re.captures(t!("abc")).unwrap();
100 let _ = cap[2];
101}
102
103#[test]
104#[should_panic]

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.80
capturesMethod · 0.45

Tested by

no test coverage detected