MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / test_internal_ip_loopback

Function test_internal_ip_loopback

crates/openshell-core/src/net.rs:506–509  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

504
505 #[test]
506 fn test_internal_ip_loopback() {
507 assert!(is_internal_ip(IpAddr::V4(Ipv4Addr::LOCALHOST)));
508 assert!(is_internal_ip(IpAddr::V6(Ipv6Addr::LOCALHOST)));
509 }
510
511 #[test]
512 fn test_internal_ip_link_local() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected