MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / mock_generic_protocol

Function mock_generic_protocol

crates/openshell-router/src/mock.rs:241–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239
240 #[test]
241 fn mock_generic_protocol() {
242 let route = make_route("mock://test", &["unknown_protocol"], "some-model");
243 let resp = mock_response(&route, "unknown_protocol");
244 assert_eq!(resp.status, 200);
245
246 let body: serde_json::Value = serde_json::from_slice(&resp.body).unwrap();
247 assert_eq!(body["mock"], true);
248 assert_eq!(body["model"], "some-model");
249 }
250
251 #[test]
252 fn mock_response_includes_marker_header() {

Callers

nothing calls this directly

Calls 2

mock_responseFunction · 0.85
make_routeFunction · 0.70

Tested by

no test coverage detected