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

Function http_client_is_not_created_until_needed

rust/src/lib.rs:2025–2033  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2023
2024 #[test]
2025 fn http_client_is_not_created_until_needed() {
2026 let mut manager = crate::chrome::ChromeManager::new().unwrap();
2027 assert!(manager.get_http_client_cell().get().is_none());
2028
2029 manager.get_config_mut().insecure = true;
2030 manager.get_http_client().unwrap();
2031
2032 assert!(manager.get_http_client_cell().get().is_some());
2033 }
2034
2035 #[test]
2036 fn format_error_adds_hint_for_untrusted_certificate() {

Callers

nothing calls this directly

Calls 2

get_http_clientMethod · 0.80
get_config_mutMethod · 0.45

Tested by

no test coverage detected