Move HTTP tests into a module

This commit is contained in:
_Frky 2021-12-16 22:25:31 +01:00
parent dfb4707577
commit c116c7bfdb

View file

@ -267,6 +267,10 @@ WWW-Authenticate: Basic realm=\"Access to admin page\"
Some(repl_data) Some(repl_data)
} }
#[cfg(test)]
mod tests {
use super::*;
#[test] #[test]
fn test_http_verb() { fn test_http_verb() {
/* all at once */ /* all at once */
@ -386,3 +390,4 @@ fn test_http_request_no_field() {
http_parse(&mut pstate, crlf); http_parse(&mut pstate, crlf);
assert!(pstate.state == HTTP_STATE_CONTENT); assert!(pstate.state == HTTP_STATE_CONTENT);
} }
}