MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_load_from_nonexistent_dir

Function test_load_from_nonexistent_dir

core/src/skills/registry.rs:672–678  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

670
671 #[test]
672 fn test_load_from_nonexistent_dir() {
673 let registry = SkillRegistry::new();
674 let result = registry.load_from_dir("/nonexistent/path");
675
676 assert!(result.is_ok());
677 assert_eq!(result.unwrap(), 0);
678 }
679
680 #[test]
681 fn test_load_from_dir_rejects_file_path() -> anyhow::Result<()> {

Callers

nothing calls this directly

Calls 1

load_from_dirMethod · 0.45

Tested by

no test coverage detected