MCPcopy Create free account
hub / github.com/FeatureProbe/server-sdk-rust / test_load

Function test_load

src/evaluate.rs:641–647  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

639
640 #[test]
641 fn test_load() {
642 let mut path = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
643 path.push("resources/fixtures/repo.json");
644 let json_str = fs::read_to_string(path).unwrap();
645 let repo = load_json(&json_str);
646 assert!(repo.is_ok());
647 }
648
649 #[test]
650 fn test_load_invalid_json() {

Callers

nothing calls this directly

Calls 1

load_jsonFunction · 0.85

Tested by

no test coverage detected