()
| 533 | |
| 534 | #[test] |
| 535 | fn test_internal_ip_allows_public() { |
| 536 | assert!(!is_internal_ip(IpAddr::V4(Ipv4Addr::new(8, 8, 8, 8)))); |
| 537 | assert!(!is_internal_ip(IpAddr::V6(Ipv6Addr::new( |
| 538 | 0x2001, 0x4860, 0x4860, 0, 0, 0, 0, 0x8888 |
| 539 | )))); |
| 540 | } |
| 541 | |
| 542 | #[test] |
| 543 | fn test_internal_ip_ipv4_mapped_v6() { |
nothing calls this directly
no outgoing calls
no test coverage detected