Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for padInput (0.2 sec)

  1. src/archive/tar/reader_test.go

    		wantErr: io.ErrUnexpectedEOF,
    	}, {
    		inputData: padInput("0\n"),
    		inputHdrs: map[string]string{paxGNUSparseMajor: "1", paxGNUSparseMinor: "0"},
    		wantMap:   sparseDatas{},
    	}, {
    		inputData: padInput("0\n")[:blockSize-1] + "#",
    		inputHdrs: map[string]string{paxGNUSparseMajor: "1", paxGNUSparseMinor: "0"},
    		wantMap:   sparseDatas{},
    	}, {
    		inputData: padInput("0"),
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

        assertEquals(RESULT_DATA, resultFuture.get());
      }
    
      public void testFutureGetThrowsRuntimeException() throws Exception {
        BadFuture badInput = new BadFuture(Futures.immediateFuture(20));
        ListenableFuture<String> chain = buildChainingFuture(badInput);
        ExecutionException e = assertThrows(ExecutionException.class, () -> chain.get());
        assertSame(RuntimeException.class, e.getCause().getClass());
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

        assertEquals(RESULT_DATA, resultFuture.get());
      }
    
      public void testFutureGetThrowsRuntimeException() throws Exception {
        BadFuture badInput = new BadFuture(Futures.immediateFuture(20));
        ListenableFuture<String> chain = buildChainingFuture(badInput);
        ExecutionException e = assertThrows(ExecutionException.class, () -> chain.get());
        assertSame(RuntimeException.class, e.getCause().getClass());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        "NaNd",
        "InfinityF"
      };
    
      @GwtIncompatible // Floats.tryParse
      public void testTryParseFailures() {
        for (String badInput : BAD_TRY_PARSE_INPUTS) {
          assertThat(Floats.tryParse(badInput)).isEqualTo(referenceTryParse(badInput));
          assertThat(Floats.tryParse(badInput)).isNull();
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNulls() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/DoublesTest.java

        for (String badInput : BAD_TRY_PARSE_INPUTS) {
          assertThat(badInput)
              .doesNotMatch(
                  Pattern.compile(
                      Doubles.FLOATING_POINT_PATTERN.pattern(),
                      Doubles.FLOATING_POINT_PATTERN.flags()));
          assertThat(Doubles.tryParse(badInput)).isEqualTo(referenceTryParse(badInput));
          assertThat(Doubles.tryParse(badInput)).isNull();
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        for (String badInput : BAD_TRY_PARSE_INPUTS) {
          assertThat(badInput)
              .doesNotMatch(
                  Pattern.compile(
                      Doubles.FLOATING_POINT_PATTERN.pattern(),
                      Doubles.FLOATING_POINT_PATTERN.flags()));
          assertThat(Doubles.tryParse(badInput)).isEqualTo(referenceTryParse(badInput));
          assertThat(Doubles.tryParse(badInput)).isNull();
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/FloatsTest.java

        "NaNd",
        "InfinityF"
      };
    
      @GwtIncompatible // Floats.tryParse
      public void testTryParseFailures() {
        for (String badInput : BAD_TRY_PARSE_INPUTS) {
          assertThat(Floats.tryParse(badInput)).isEqualTo(referenceTryParse(badInput));
          assertThat(Floats.tryParse(badInput)).isNull();
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNulls() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/BaseEncoding.java

       *     encoding.
       */
      public final byte[] decode(CharSequence chars) {
        try {
          return decodeChecked(chars);
        } catch (DecodingException badInput) {
          throw new IllegalArgumentException(badInput);
        }
      }
    
      /**
       * Decodes the specified character sequence, and returns the resulting {@code byte[]}. This is the
       * inverse operation to {@link #encode(byte[])}.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/net/MediaTypeTest.java

      }
    
      public void testParse_empty() {
        try {
          MediaType.parse("");
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testParse_badInput() {
        try {
          MediaType.parse("/");
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          MediaType.parse("text");
          fail();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/net/MediaTypeTest.java

      }
    
      public void testParse_empty() {
        try {
          MediaType.parse("");
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testParse_badInput() {
        try {
          MediaType.parse("/");
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          MediaType.parse("text");
          fail();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
Back to top