Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIPAddrScope (0.12 sec)

  1. src/net/ip_test.go

    	{IP.IsPrivate, IP{0xfe, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, false},
    }
    
    func name(f any) string {
    	return runtime.FuncForPC(reflect.ValueOf(f).Pointer()).Name()
    }
    
    func TestIPAddrScope(t *testing.T) {
    	for _, tt := range ipAddrScopeTests {
    		if ok := tt.scope(tt.in); ok != tt.ok {
    			t.Errorf("%s(%q) = %v, want %v", name(tt.scope), tt.in, ok, tt.ok)
    		}
    		ip := tt.in.To4()
    		if ip == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 01:17:29 UTC 2024
    - 25.7K bytes
    - Viewed (0)
Back to top