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

Function check_cache_path

rust/src/config.rs:342–352  ·  view source on GitHub ↗
(value_in_config_or_env: String, default_value: String)

Source from the content-addressed store, hash-verified

340}
341
342fn check_cache_path(value_in_config_or_env: String, default_value: String) -> String {
343 let return_value = if !value_in_config_or_env.is_empty() {
344 value_in_config_or_env
345 } else if !default_value.is_empty() {
346 default_value
347 } else {
348 read_cache_path()
349 };
350 write_cache_path(return_value.clone());
351 return_value
352}
353
354fn write_cache_path(cache_path: String) {
355 CACHE_PATH.with(|value| {

Callers 1

get_valueMethod · 0.85

Calls 3

read_cache_pathFunction · 0.85
write_cache_pathFunction · 0.85
is_emptyMethod · 0.80

Tested by

no test coverage detected