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

Method get_normalized_arch

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

Source from the content-addressed store, hash-verified

1368 }
1369
1370 fn get_normalized_arch(&self) -> Result<&str, Error> {
1371 let arch = self.get_arch();
1372 if X32.is(arch) {
1373 Ok(ARCH_X86)
1374 } else if X64.is(arch) {
1375 Ok(ARCH_X64)
1376 } else if ARM64.is(arch) {
1377 Ok(ARCH_ARM64)
1378 } else if ARMV7.is(arch) {
1379 Ok(ARCH_ARM7L)
1380 } else {
1381 let err_msg = format!("Unsupported architecture: {}", arch);
1382 self.get_logger().warn(err_msg.clone());
1383 Err(anyhow!(err_msg))
1384 }
1385 }
1386
1387 fn set_arch(&mut self, arch: String) {
1388 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