MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_search_up

Function test_search_up

crates/vm/src/getpath.rs:400–404  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

398
399 #[test]
400 fn test_search_up() {
401 // Test with a path that doesn't have any landmarks
402 let result = search_up_file(std::env::temp_dir(), &["nonexistent_landmark_xyz"]);
403 assert!(result.is_none());
404 }
405
406 #[test]
407 fn test_default_prefix() {

Callers

nothing calls this directly

Calls 2

search_up_fileFunction · 0.85
temp_dirFunction · 0.85

Tested by

no test coverage detected