Registry / testing / yup-hyper-mock

yup-hyper-mock

JSON →
library8.0.0rscratesunverified

A utility library for testing clients using hyper, providing mock connectors and responses.

# Cargo.toml [dependencies] yup-hyper-mock = "8.0.0"
INSTALL
IMPORT
SIG · YUP-HYPER-MOCK
Y
yup-hyper-mock
testingrustv8.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MockConnector
use yup_hyper_mock::MockConnector;

Creates a mock connector that returns a predefined response.

use yup_hyper_mock::MockConnector; use hyper::Client; fn main() { let mock = MockConnector::new(|_| { Ok(hyper::Response::new(hyper::Body::from("mock response"))) }); let client = Client::builder().build(mock); // Use client in tests }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
8.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
28
OpenAI (training)
1
Resources
yup-hyper-mock — cargo add yup-hyper-mock · libregistry