Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIs4In6 (0.09 sec)

  1. src/net/netip/netip_test.go

    			t.Errorf("Is4(%q) = %v; want %v", tt.ip, got4, tt.is4)
    		}
    
    		got6 := tt.ip.Is6()
    		if got6 != tt.is6 {
    			t.Errorf("Is6(%q) = %v; want %v", tt.ip, got6, tt.is6)
    		}
    	}
    }
    
    func TestIs4In6(t *testing.T) {
    	tests := []struct {
    		ip        Addr
    		want      bool
    		wantUnmap Addr
    	}{
    		{Addr{}, false, Addr{}},
    		{mustIP("::ffff:c000:0280"), true, mustIP("192.0.2.128")},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
Back to top