Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for WantOK (0.08 sec)

  1. src/net/netip/netip_test.go

    	tests := []struct {
    		ip       []byte
    		wantAddr Addr
    		wantOK   bool
    	}{
    		{
    			ip:       []byte{10, 0, 0, 1},
    			wantAddr: mustIP("10.0.0.1"),
    			wantOK:   true,
    		},
    		{
    			ip:       []byte{0xfe, 0x80, 15: 0x01},
    			wantAddr: mustIP("fe80::01"),
    			wantOK:   true,
    		},
    		{
    			ip:       []byte{0, 1, 2},
    			wantAddr: Addr{},
    			wantOK:   false,
    		},
    		{
    			ip:       nil,
    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