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

Function test_index_files

core/src/context/fs_provider.rs:305–314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

303
304 #[tokio::test]
305 async fn test_index_files() {
306 let temp_dir = TempDir::new().unwrap();
307 create_test_files(temp_dir.path()).unwrap();
308
309 let config = FileSystemContextConfig::new(temp_dir.path());
310 let provider = FileSystemContextProvider::new(config);
311
312 let files = provider.index_files().await.unwrap();
313 assert!(files.len() >= 2);
314 }
315
316 #[tokio::test]
317 async fn test_search_simple() {

Callers

nothing calls this directly

Calls 3

create_test_filesFunction · 0.85
pathMethod · 0.80
index_filesMethod · 0.80

Tested by

no test coverage detected