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

Function check_cache_path

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

Source from the content-addressed store, hash-verified

282}
283
284fn check_cache_path(value_in_config_or_env: String, default_value: String) -> String {
285 let return_value = if !value_in_config_or_env.is_empty() {
286 value_in_config_or_env
287 } else if !default_value.is_empty() {
288 default_value
289 } else {
290 read_cache_path()
291 };
292 write_cache_path(return_value.clone());
293 return_value
294}
295
296fn write_cache_path(cache_path: String) {
297 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