Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for ipStr (0.05 sec)

  1. android/guava-tests/test/com/google/common/net/InetAddressesTest.java

        String ipStr = "192.168.0.1";
        // Shouldn't hit DNS, because it's an IP string literal.
        InetAddress ipv4Addr = InetAddress.getByName(ipStr);
        assertEquals(ipv4Addr, InetAddresses.forString(ipStr));
        assertTrue(InetAddresses.isInetAddress(ipStr));
      }
    
      public void testForStringIPv4NonAsciiInput() throws UnknownHostException {
        String ipStr = "૧૯૨.૧૬૮.૦.૧"; // 192.168.0.1 in Gujarati digits
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  2. pkg/proxy/util/utils_test.go

    			var ipStr []string
    			for _, ip := range ipMap[ipFamily] {
    				ipStr = append(ipStr, ip.String())
    			}
    			if !reflect.DeepEqual(testcase.expectCorrect, ipStr) {
    				t.Errorf("Test %v failed: expected %v, got %v", testcase.desc, testcase.expectCorrect, ipMap[ipFamily])
    			}
    			ipStr = nil
    			for _, ip := range ipMap[otherIPFamily] {
    				ipStr = append(ipStr, ip.String())
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease.go

    			if len(ip.Subsets) > 0 {
    				var ipStr, portStr string
    				if len(ip.Subsets[0].Addresses) > 0 {
    					if len(ip.Subsets[0].Addresses[0].IP) > 0 {
    						ipStr = ip.Subsets[0].Addresses[0].IP
    					}
    				}
    				if len(ip.Subsets[0].Ports) > 0 {
    					portStr = fmt.Sprint(ip.Subsets[0].Ports[0].Port)
    				}
    				fullAddr = net.JoinHostPort(ipStr, portStr)
    				break
    			}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  4. pkg/proxy/nftables/helpers_test.go

    		nft:     nft,
    		nodeIPs: sets.New(nodeIPs...),
    		t:       t,
    	}
    }
    
    func (tracer *nftablesTracer) addressMatches(ipStr string, wantMatch bool, ruleAddress string) bool {
    	ip := netutils.ParseIPSloppy(ipStr)
    	if ip == nil {
    		tracer.t.Fatalf("Bad IP in test case: %s", ipStr)
    	}
    
    	var match bool
    	if strings.Contains(ruleAddress, "/") {
    		_, cidr, err := netutils.ParseCIDRSloppy(ruleAddress)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 09:57:47 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/preflight/checks.go

    	}
    
    	if cfg.Discovery.BootstrapToken != nil {
    		ipstr, _, err := net.SplitHostPort(cfg.Discovery.BootstrapToken.APIServerEndpoint)
    		if err == nil {
    			checks = append(checks,
    				HTTPProxyCheck{Proto: "https", Host: ipstr},
    			)
    			if ip := netutils.ParseIPSloppy(ipstr); ip != nil {
    				if netutils.IsIPv4(ip) {
    					checks = addIPv4Checks(checks)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:20:55 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  6. pkg/proxy/servicechangetracker_test.go

    	return ServicePortName{
    		NamespacedName: makeNSN(ns, name),
    		Port:           port,
    		Protocol:       protocol,
    	}
    }
    func makeIPs(ipStr ...string) []net.IP {
    	var ips []net.IP
    	for _, s := range ipStr {
    		ips = append(ips, netutils.ParseIPSloppy(s))
    	}
    	return ips
    }
    func mustMakeCIDRs(cidrStr ...string) []*net.IPNet {
    	var cidrs []*net.IPNet
    	for _, s := range cidrStr {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  7. src/encoding/xml/read_test.go

    	Ss       []string
    	SPtrs    []*string
    	MyI      MyInt
    	Child    Child
    	Children []Child
    	ChildPtr *Child
    	ChildToEmbed
    }
    
    const (
    	emptyXML = `
    <Parent>
        <I></I>
        <IPtr></IPtr>
        <Is></Is>
        <IPtrs></IPtrs>
        <F></F>
        <FPtr></FPtr>
        <Fs></Fs>
        <FPtrs></FPtrs>
        <B></B>
        <BPtr></BPtr>
        <Bs></Bs>
        <BPtrs></BPtrs>
        <Bytes></Bytes>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 29.1K bytes
    - Viewed (0)
Back to top