Add unit tests to raise coverage score

Signed-off-by: YUAN LYU <lyuyuan92@gmail.com>
This commit is contained in:
YUAN LYU
2021-04-02 15:29:21 -04:00
committed by Adrian Catangiu
parent 9e6ab4b5ab
commit 49240ce1d5
4 changed files with 30 additions and 1 deletions

View File

@@ -522,6 +522,14 @@ mod tests {
);
}
#[test]
fn test_display_route_error() {
assert_eq!(
format!("{}", RouteError::HandlerExist("test".to_string())),
"handler for test already exists"
);
}
#[test]
fn test_method_to_str() {
let val = Method::Get;