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

Function create_stats_metadata

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

Source from the content-addressed store, hash-verified

243}
244
245pub fn create_stats_metadata(props: &Props, stats_ttl: u64) -> Stats {
246 Stats {
247 browser: props.browser.to_string(),
248 browser_version: props.browser_version.to_string(),
249 os: props.os.to_string(),
250 arch: props.arch.to_string(),
251 lang: props.lang.to_string(),
252 selenium_version: props.selenium_version.to_string(),
253 stats_ttl: now_unix_timestamp() + stats_ttl,
254 }
255}
256
257pub fn write_metadata(metadata: &Metadata, log: &Logger, cache_path: Option<PathBuf>) {
258 if let Some(cache) = cache_path {

Callers 1

statsMethod · 0.85

Calls 1

now_unix_timestampFunction · 0.85

Tested by

no test coverage detected