()
| 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() { |
nothing calls this directly
no test coverage detected