()
| 68 | |
| 69 | #[test] |
| 70 | fn test_http_remote_config_default() { |
| 71 | let config = HttpRemoteConfig::default(); |
| 72 | assert_eq!(config.timeout, Duration::from_secs(DEFAULT_TIMEOUT_SECS)); |
| 73 | assert_eq!( |
| 74 | config.connect_timeout, |
| 75 | Duration::from_secs(DEFAULT_CONNECT_TIMEOUT_SECS), |
| 76 | ); |
| 77 | assert!(!config.danger_accept_invalid_certs); |
| 78 | assert!(config.extra_headers.is_empty()); |
| 79 | } |
| 80 | |
| 81 | #[test] |
| 82 | fn test_http_remote_config_builder() { |
nothing calls this directly
no outgoing calls
no test coverage detected