use faucet_source_rest::{PaginationStyle, RestStream, RestStreamConfig};
fn unreachable_source() -> RestStream {
RestStream::new(
RestStreamConfig::new("http://127.0.0.1:1", "/items").pagination(PaginationStyle::None),
)
.expect("rest stream builds from a valid config")
}
#[test]
fn conformance_config_schema_valid() {
faucet_conformance::assert_config_schema_valid(&unreachable_source());
}
#[tokio::test]
async fn conformance_errors_not_panics() {
faucet_conformance::assert_errors_not_panics(&unreachable_source()).await;
}