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

Function create_stats_metadata

rust/src/metadata.rs:215–225  ·  view source on GitHub ↗
(props: &Props, stats_ttl: u64)

Source from the content-addressed store, hash-verified

213}
214
215pub fn create_stats_metadata(props: &Props, stats_ttl: u64) -> Stats {
216 Stats {
217 browser: props.browser.to_string(),
218 browser_version: props.browser_version.to_string(),
219 os: props.os.to_string(),
220 arch: props.arch.to_string(),
221 lang: props.lang.to_string(),
222 selenium_version: props.selenium_version.to_string(),
223 stats_ttl: now_unix_timestamp() + stats_ttl,
224 }
225}
226
227pub fn write_metadata(metadata: &Metadata, log: &Logger, cache_path: Option<PathBuf>) {
228 if let Some(cache) = cache_path {

Callers 1

statsMethod · 0.85

Calls 1

now_unix_timestampFunction · 0.85

Tested by

no test coverage detected