Add unit tests to raise coverage score
Signed-off-by: YUAN LYU <lyuyuan92@gmail.com>
This commit is contained in:
committed by
Adrian Catangiu
parent
9e6ab4b5ab
commit
49240ce1d5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user