mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-02 14:48:22 +00:00
Move HTTP tests into a module
This commit is contained in:
parent
dfb4707577
commit
c116c7bfdb
1 changed files with 117 additions and 112 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue