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

Function create_test_dir

rust/src/jre.rs:370–378  ·  view source on GitHub ↗
(prefix: &str)

Source from the content-addressed store, hash-verified

368 use std::time::{SystemTime, UNIX_EPOCH};
369
370 fn create_test_dir(prefix: &str) -> std::path::PathBuf {
371 let unique = SystemTime::now()
372 .duration_since(UNIX_EPOCH)
373 .unwrap()
374 .as_nanos();
375 let dir = std::env::temp_dir().join(format!("{}_{}", prefix, unique));
376 fs::create_dir_all(&dir).unwrap();
377 dir
378 }
379
380 #[test]
381 fn parses_java_major_versions() {

Calls

no outgoing calls