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

Method get_normalized_arch

rust/src/lib.rs:1388–1403  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1386 }
1387
1388 fn get_normalized_arch(&self) -> Result<&str, Error> {
1389 let arch = self.get_arch();
1390 if X32.is(arch) {
1391 Ok(ARCH_X86)
1392 } else if X64.is(arch) {
1393 Ok(ARCH_X64)
1394 } else if ARM64.is(arch) {
1395 Ok(ARCH_ARM64)
1396 } else if ARMV7.is(arch) {
1397 Ok(ARCH_ARM7L)
1398 } else {
1399 let err_msg = format!("Unsupported architecture: {}", arch);
1400 self.get_logger().warn(err_msg.clone());
1401 Err(anyhow!(err_msg))
1402 }
1403 }
1404
1405 fn set_arch(&mut self, arch: String) {
1406 if !arch.is_empty() {

Callers 1

statsMethod · 0.80

Implementers 8

edge.rsrust/src/edge.rs
iexplorer.rsrust/src/iexplorer.rs
safaritp.rsrust/src/safaritp.rs
electron.rsrust/src/electron.rs
chrome.rsrust/src/chrome.rs
firefox.rsrust/src/firefox.rs
grid.rsrust/src/grid.rs
safari.rsrust/src/safari.rs

Calls 4

get_archMethod · 0.80
isMethod · 0.65
warnMethod · 0.45
get_loggerMethod · 0.45

Tested by

no test coverage detected