Render a pretty hexdump in the logs
This commit is contained in:
parent
f7edffc6cc
commit
53e5c929ca
6 changed files with 34 additions and 8 deletions
|
@ -339,12 +339,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn test_invalid_parse_filter_auth() {
|
||||
let test_vectors = vec![
|
||||
"|\n",
|
||||
"|\r\n",
|
||||
"|derp",
|
||||
"|derp|derpson\n",
|
||||
];
|
||||
let test_vectors = vec!["|\n", "|\r\n", "|derp", "|derp|derpson\n"];
|
||||
for test in test_vectors {
|
||||
let res = parse_filter_auth(test.as_bytes());
|
||||
assert!(!res.is_ok());
|
||||
|
|
Reference in a new issue