Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for As4 (0.14 sec)

  1. src/net/netip/netip_test.go

    		},
    		{
    			ip:        mustIP("::1"),
    			wantPanic: true,
    		},
    	}
    	as4 := func(ip Addr) (v [4]byte, gotPanic bool) {
    		defer func() {
    			if recover() != nil {
    				gotPanic = true
    				return
    			}
    		}()
    		v = ip.As4()
    		return
    	}
    	for i, tt := range tests {
    		got, gotPanic := as4(tt.ip)
    		if gotPanic != tt.wantPanic {
    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