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

Function test_decode_utf8_chars

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

Source from the content-addressed store, hash-verified

178 "./test🌠⚙§\\test🌠t⚙e§s\\t"
179 )]
180 fn test_decode_utf8_chars(#[case] input: &str, #[case] expected: &str) {
181 let input = input.to_string();
182 let result = decode_utf8_chars(&mut input.as_str());
183 assert_eq!(result, Ok(expected.to_string()));
184 }
185
186 #[rstest]
187 // Unknown escape sequence

Callers

nothing calls this directly

Calls 2

decode_utf8_charsFunction · 0.85
as_strMethod · 0.45

Tested by

no test coverage detected