Install the default rustls crypto provider. Must be called once at the start of any test that exercises TLS handshakes. Multiple calls are harmless (subsequent calls return an error, ignored).
()
| 14 | /// Must be called once at the start of any test that exercises TLS handshakes. |
| 15 | /// Multiple calls are harmless (subsequent calls return an error, ignored). |
| 16 | pub fn install_rustls_provider() { |
| 17 | let _ = rustls::crypto::ring::default_provider().install_default(); |
| 18 | } |
| 19 | |
| 20 | /// Write bytes to a file inside `dir`, panicking on failure. |
| 21 | pub fn write_test_file(dir: &Path, name: &str, data: &[u8]) { |
no outgoing calls
no test coverage detected