MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / find_java_binary_ignores_non_bin_locations

Function find_java_binary_ignores_non_bin_locations

rust/src/jre.rs:446–459  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

444
445 #[test]
446 fn find_java_binary_ignores_non_bin_locations() {
447 let root = create_test_dir("jre_find_java_outside_bindir");
448 let java_name = if OS == "windows" { "java.exe" } else { "java" };
449 let java_path = root.join("jdk-21").join(java_name);
450
451 fs::create_dir_all(java_path.parent().unwrap()).unwrap();
452 File::create(&java_path).unwrap();
453
454 let detected = find_java_binary(&root);
455
456 assert!(detected.is_none());
457
458 fs::remove_dir_all(&root).unwrap();
459 }
460
461 #[test]
462 fn find_java_binary_picks_first_in_bin_directory() {

Callers

nothing calls this directly

Calls 4

createFunction · 0.85
find_java_binaryFunction · 0.85
parentMethod · 0.80
create_test_dirFunction · 0.70

Tested by

no test coverage detected