()
| 351 | |
| 352 | #[test] |
| 353 | fn check_model_dir_config_only() { |
| 354 | let tmp = tempfile::tempdir().unwrap(); |
| 355 | fs::write(tmp.path().join("config.json"), "{}").unwrap(); |
| 356 | let result = check_model_dir(tmp.path()); |
| 357 | assert!(result.is_some()); |
| 358 | let (status, _size) = result.unwrap(); |
| 359 | assert_eq!(status, ModelStatus::Partial { have: 0, total: 1 }); |
| 360 | } |
| 361 | |
| 362 | #[test] |
| 363 | fn check_model_dir_single_safetensors() { |
nothing calls this directly
no test coverage detected