MCPcopy Create free account
hub / github.com/evilsocket/cake / check_model_dir_config_only

Function check_model_dir_config_only

cake-core/src/utils/models.rs:353–360  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

check_model_dirFunction · 0.85

Tested by

no test coverage detected