MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_http_remote_config_default

Function test_http_remote_config_default

atomic-remote/src/http/tests.rs:70–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68
69#[test]
70fn 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]
82fn test_http_remote_config_builder() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected