pub struct TestApp { /* private fields */ }Expand description
An application under test.
Implementations§
Source§impl TestApp
impl TestApp
pub fn new(service: Service) -> Self
pub fn get(&self, path: &str) -> TestRequest
pub fn post(&self, path: &str) -> TestRequest
pub fn put(&self, path: &str) -> TestRequest
pub fn patch(&self, path: &str) -> TestRequest
pub fn delete(&self, path: &str) -> TestRequest
Sourcepub fn options(&self, path: &str) -> TestRequest
pub fn options(&self, path: &str) -> TestRequest
Send an OPTIONS request, for asserting on a CORS preflight.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TestApp
impl !UnwindSafe for TestApp
impl Freeze for TestApp
impl Send for TestApp
impl Sync for TestApp
impl Unpin for TestApp
impl UnsafeUnpin for TestApp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more