]> git.ipfire.org Git - thirdparty/suricata.git/commit
dns: refactor tests to avoid assert!(false) 12618/head 12630/head
authorJason Ish <jason.ish@oisf.net>
Tue, 18 Feb 2025 22:12:30 +0000 (16:12 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 18 Feb 2025 22:12:30 +0000 (16:12 -0600)
commitac62d1bc46606467380982d02e40dc62bbdc899b
tree312b8f64d200eb8f08abd67b2a2de90f5d9e745c
parent6666555a0920951eb37438dcb21e97061f17edf6
dns: refactor tests to avoid assert!(false)

Mostly just unwrap instead of match as unwrap provides good
context. And replace a few assert!(false) with a descriptive panic.
rust/src/dns/parser.rs