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

Function get_index_version

rust/src/lib.rs:1968–1974  ·  view source on GitHub ↗
(full_version: &str, index: usize)

Source from the content-addressed store, hash-verified

1966// ----------------------------------------------------------
1967
1968fn get_index_version(full_version: &str, index: usize) -> Result<String, Error> {
1969 let version_vec: Vec<&str> = full_version.split('.').collect();
1970 Ok(version_vec
1971 .get(index)
1972 .ok_or(anyhow!(format!("Wrong version: {}", full_version)))?
1973 .to_string())
1974}

Callers 2

get_major_versionMethod · 0.85
get_minor_versionMethod · 0.85

Calls 2

splitMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected