MCPcopy Index your code
hub / github.com/eventuallyconsultant/codegenr / resolve_refs_test_0

Function resolve_refs_test_0

codegenr/src/resolver.rs:269–295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267 "myref": {
268 "data": "test"
269 }
270 });
271
272 let expected = json!({
273 "test": {
274 "data": "test",
275 "x-fromRef": "#/myref",
276 "x-refName": "myref",
277 },
278 "myref": {
279 "data": "test"
280 }
281 });
282
283 let resolved = resolve_refs_raw(json)?;
284 println!("{}", resolved);
285 println!("{}", expected);
286 assert_eq!(resolved, expected);
287 Ok(())
288 }
289
290 #[test]
291 fn resolve_refs_test_1() -> Result<(), anyhow::Error> {
292 let json = json!({
293 "test": {
294 "$ref": "#myref"
295 },
296 "myref": {
297 "data": "test"
298 }

Callers

nothing calls this directly

Calls 1

resolve_refs_rawFunction · 0.85

Tested by

no test coverage detected