pub fn patch(path: impl Into<String>) -> TestConn
Expand description

Builds a new TestConn with the patch http method and the provided path.

use trillium_testing::prelude::*;

let conn = patch("/some/route").on(&());

assert_eq!(conn.method(), Method::Patch);
assert_eq!(conn.path(), "/some/route");