MCPcopy Create free account
hub / github.com/archlinux/alpm / test_decode_utf8_chars_invalid_escape

Function test_decode_utf8_chars_invalid_escape

alpm-mtree/src/path_decoder.rs:195–199  ·  view source on GitHub ↗
(#[case] input: &str)

Source from the content-addressed store, hash-verified

193 // 5 leading zeroes in first byte.
194 #[case(r"\370\237\214\240")]
195 fn test_decode_utf8_chars_invalid_escape(#[case] input: &str) {
196 let input = input.to_string();
197 let result = decode_utf8_chars(&mut input.as_str());
198 assert!(result.is_err());
199 }
200}

Callers

nothing calls this directly

Calls 2

decode_utf8_charsFunction · 0.85
as_strMethod · 0.45

Tested by

no test coverage detected