mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-02 06:38:21 +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)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_http_verb() {
|
||||
/* all at once */
|
||||
|
@ -386,3 +390,4 @@ fn test_http_request_no_field() {
|
|||
http_parse(&mut pstate, crlf);
|
||||
assert!(pstate.state == HTTP_STATE_CONTENT);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue