Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Test_hostsPerNetwork (0.4 sec)

  1. pkg/registry/core/service/ipallocator/ipallocator_test.go

    			if got, err := broadcastAddress(tt.subnet); !reflect.DeepEqual(got, tt.want) || err != nil {
    				t.Errorf("broadcastAddress() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func Test_hostsPerNetwork(t *testing.T) {
    	testCases := []struct {
    		name  string
    		cidr  string
    		addrs uint64
    	}{
    		{
    			name:  "supported IPv4 cidr",
    			cidr:  "192.168.1.0/24",
    			addrs: 254,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jun 25 13:14:46 UTC 2023
    - 24.2K bytes
    - Viewed (0)
Back to top