ContractTestable

Trait ContractTestable 

Source
pub trait ContractTestable {
    // Required methods
    fn generate_contract_tests(&self) -> ContractTestResults;
    fn test_route_contract(
        &self,
        path: &str,
        method: &str,
    ) -> ContractTestResult;
}
Expand description

Helper trait for generating contract tests

Required Methods§

Source

fn generate_contract_tests(&self) -> ContractTestResults

Generate contract tests for all routes

Source

fn test_route_contract(&self, path: &str, method: &str) -> ContractTestResult

Test a specific route path and method

Implementors§