Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 261 for Kata (0.14 sec)

  1. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        checkSha1(expected, key, data.getBytes(UTF_8));
      }
    
      private static void checkSha1(String expected, byte[] key, byte[] data) {
        checkHmac(expected, Hashing.hmacSha1(key), data);
      }
    
      private static void checkMd5(String expected, byte[] key, String data) {
        checkMd5(expected, key, data.getBytes(UTF_8));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        }
        File file = out.getFile();
        assertNull(file);
    
        // Write data to go over the threshold
        if (chunk2 > 0) {
          if (JAVA_IO_TMPDIR.value().equals("/sdcard")) {
            assertThrows(IOException.class, () -> write(out, data, chunk1, chunk2, singleByte));
            return;
          }
          write(out, data, chunk1, chunk2, singleByte);
          file = out.getFile();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

        return RESULT_DATA;
      }
    
      private class ChainingFunction implements AsyncFunction<Integer, String> {
        @Override
        public ListenableFuture<String> apply(Integer input) throws Exception {
          switch (input) {
            case VALID_INPUT_DATA:
              outputFuture.set(RESULT_DATA);
              break;
            case SLOW_OUTPUT_VALID_INPUT_DATA:
              break; // do nothing to the result
    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)
  4. guava-tests/test/com/google/common/collect/TablesTransformValuesTest.java

      @Override
      protected Table<String, Integer, Character> create(@Nullable Object... data) {
        Table<String, Integer, String> table = HashBasedTable.create();
        checkArgument(data.length % 3 == 0);
        for (int i = 0; i < data.length; i += 3) {
          String value = (data[i + 2] == null) ? null : (data[i + 2] + "transformed");
          table.put((String) data[i], (Integer) data[i + 1], value);
        }
        return Tables.transformValues(table, FIRST_CHARACTER);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/FuturesTransformTest.java

      }
    
      @Override
      protected String getSuccessfulResult() {
        return RESULT_DATA;
      }
    
      private class ComposeFunction implements Function<Integer, String> {
        @Override
        public String apply(Integer input) {
          if (input.intValue() == VALID_INPUT_DATA) {
            return RESULT_DATA;
          } else {
            throw WRAPPED_EXCEPTION;
          }
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 28 16:27:15 GMT 2018
    - 1.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/SourceSinkTester.java

      protected final T data;
      protected final T expected;
    
      private final String suiteName;
      private final String caseDesc;
    
      SourceSinkTester(F factory, T data, String suiteName, String caseDesc, Method method) {
        super(method.getName());
        this.factory = checkNotNull(factory);
        this.data = checkNotNull(data);
        this.expected = checkNotNull(factory.getExpected(data));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 27 18:57:08 GMT 2022
    - 4.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/AbstractTableTest.java

        extends AbstractTableReadTest<C> {
    
      protected void populate(Table<String, Integer, C> table, @Nullable Object... data) {
        checkArgument(data.length % 3 == 0);
        for (int i = 0; i < data.length; i += 3) {
          table.put(
              (String) data[i], (Integer) data[i + 1], nullableCellValue((Character) data[i + 2]));
        }
      }
    
      protected boolean supportsRemove() {
        return true;
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Ascii.java

       * block of data for communication purposes. ETB is used for blocking data where the block
       * structure is not necessarily related to the processing format.
       *
       * @since 8.0
       */
      public static final byte ETB = 23;
    
      /**
       * Cancel: A control character used to indicate that the data with which it is sent is in error or
       * is to be disregarded.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        }
        return ~crc;
      }
    
      /**
       * Verifies that the crc of an array of byte data matches the expected value.
       *
       * @param expectedCrc the expected crc value.
       * @param data the data to run the checksum on.
       */
      private static void assertCrc(int expectedCrc, byte[] data) {
        int actualCrc = Hashing.crc32c().hashBytes(data).asInt();
        assertEquals(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 23 18:30:33 GMT 2020
    - 6.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamAndroidIncompatibleTest.java

    public class FileBackedOutputStreamAndroidIncompatibleTest extends IoTestCase {
    
      public void testFinalizeDeletesFile() throws Exception {
        byte[] data = newPreFilledByteArray(100);
        FileBackedOutputStream out = new FileBackedOutputStream(0, true);
    
        write(out, data, 0, 100, true);
        final File file = out.getFile();
        assertEquals(100, file.length());
        assertTrue(file.exists());
        out.close();
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 08 21:20:23 GMT 2023
    - 1.7K bytes
    - Viewed (0)
Back to top