github
5 of 165 new or added lines in 28 files covered. (3.03%)
1581 existing lines in 46 files now uncovered.93 of 2515 relevant lines covered (3.7%)
0.06 hits per line
1 |
use axum::http::StatusCode; |
|
2 |
use axum::response::IntoResponse; |
|
3 |
use axum::routing::get; |
|
4 |
use axum::Router; |
|
5 |
|
|
UNCOV
6
|
pub fn app_router() -> Router { |
× |
UNCOV
7
|
Router::new().route("/health", get(root)).nest("/v1/dev", dev_routes()).fallback(handler_404) |
× |
UNCOV
8
|
} |
× |
9 |
|
|
UNCOV
10
|
async fn root() -> &'static str {
|
× |
UNCOV
11
|
"UP"
|
× |
UNCOV
12
|
} |
× |
13 |
|
|
14 |
async fn handler_404() -> impl IntoResponse { |
× |
15 |
(StatusCode::NOT_FOUND, "The requested resource was not found")
|
× |
16 |
} |
× |
17 |
|
|
UNCOV
18
|
fn dev_routes() -> Router { |
× |
UNCOV
19
|
Router::new()
|
× |
UNCOV
20
|
} |
× |