Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for requireBracketsForIPv6 (0.09 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

        assertThat(HostAndPort.fromString("[::1]").requireBracketsForIPv6().getHost()).isEqualTo("::1");
        assertThat(HostAndPort.fromString("[::1]:80").requireBracketsForIPv6().getHost())
            .isEqualTo("::1");
        // Non-bracketed non-IPv6 works fine.
        assertThat(HostAndPort.fromString("x").requireBracketsForIPv6().getHost()).isEqualTo("x");
        assertThat(HostAndPort.fromString("x:80").requireBracketsForIPv6().getHost()).isEqualTo("x");
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 9.7K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/net/HostAndPortTest.java

        assertThat(HostAndPort.fromString("[::1]").requireBracketsForIPv6().getHost()).isEqualTo("::1");
        assertThat(HostAndPort.fromString("[::1]:80").requireBracketsForIPv6().getHost())
            .isEqualTo("::1");
        // Non-bracketed non-IPv6 works fine.
        assertThat(HostAndPort.fromString("x").requireBracketsForIPv6().getHost()).isEqualTo("x");
        assertThat(HostAndPort.fromString("x:80").requireBracketsForIPv6().getHost()).isEqualTo("x");
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 10K bytes
    - Click Count (0)
Back to Top