Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestParsePrefixAllocs (0.13 sec)

  1. src/net/netip/netip_test.go

    		p := PrefixFrom(tt.ip, tt.in)
    		if got := p.Bits(); got != tt.want {
    			t.Errorf("for (%v, %v), Bits out = %v; want %v", tt.ip, tt.in, got, tt.want)
    		}
    	}
    }
    
    func TestParsePrefixAllocs(t *testing.T) {
    	tests := []struct {
    		ip    string
    		slash string
    	}{
    		{"192.168.1.0", "/24"},
    		{"aaaa:bbbb:cccc::", "/24"},
    	}
    	for _, test := range tests {
    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