Function
status_for
(router: &Router, method: Method, path: &str)
Source from the content-addressed store, hash-verified
| 377 | } |
| 378 | |
| 379 | async fn status_for(router: &Router, method: Method, path: &str) -> StatusCode { |
| 380 | let req = Request::builder() |
| 381 | .method(method) |
| 382 | .uri(path) |
| 383 | .body(Body::empty()) |
| 384 | .unwrap(); |
| 385 | router.clone().oneshot(req).await.unwrap().status() |
| 386 | } |
| 387 | |
| 388 | #[tokio::test] |
| 389 | async fn probe_paths_unversioned() { |
Callers
nothing calls this directly
Tested by
no test coverage detected