Returns true if the route's endpoint uses the `mock://` scheme, indicating the router should return a canned response.
(route: &ResolvedRoute)
| 9 | /// Returns true if the route's endpoint uses the `mock://` scheme, |
| 10 | /// indicating the router should return a canned response. |
| 11 | pub fn is_mock_route(route: &ResolvedRoute) -> bool { |
| 12 | route.endpoint.starts_with(MOCK_SCHEME) |
| 13 | } |
| 14 | |
| 15 | /// Generate a canned HTTP response appropriate for the route's protocol. |
| 16 | /// |
no outgoing calls
no test coverage detected