Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 1,042 for bread (0.07 sec)

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

        HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer);
    
        byte[] buf = new byte[100];
        int numOfByteRead = in.read(buf, 0, buf.length);
        assertEquals(-1, in.read()); // additional read
        assertEquals(4, numOfByteRead);
    
        assertEquals(expectedHash, in.hash());
      }
    
      public void testHash_hashesCorrectlyForSkipping() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer);
    
        byte[] buf = new byte[100];
        int numOfByteRead = in.read(buf, 0, buf.length);
        assertEquals(-1, in.read()); // additional read
        assertEquals(4, numOfByteRead);
    
        assertEquals(expectedHash, in.hash());
      }
    
      public void testHash_hashesCorrectlyForSkipping() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java

            trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test", "*.*", 0x16, 10, 1024);
    
            byte[] buffer = new byte[100];
            int read = trans2FindFirst2.readSetupWireFormat(buffer, 0, 100);
    
            assertEquals(0, read);
        }
    
        @Test
        @DisplayName("Test readParametersWireFormat returns 0")
        void testReadParametersWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  4. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        val derReader = DerReader(buffer)
    
        derReader.read("test") { header ->
          assertThat(header.tag).isEqualTo(16L)
    
          derReader.read("test") { header2 ->
            assertThat(header2.tag).isEqualTo(21L)
            assertThat(derReader.readOctetString()).isEqualTo("Smith".encodeUtf8())
          }
    
          derReader.read("test") { header3 ->
            assertThat(header3.tag).isEqualTo(1L)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java

            // The content of these bytes is not critical for this test, only that 6 bytes are read.
            byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 }; // Sample 6 bytes
            ByteArrayInputStream bais = new ByteArrayInputStream(data);
            SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket();
    
            // Create a buffer large enough to hold the read bytes
            byte[] buffer = new byte[6];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

        class IntegrationTests {
    
            @Test
            @DisplayName("Should handle complete read-write cycle")
            void testCompleteReadWriteCycle() throws SMBProtocolDecodingException {
                // Given
                byte[] writeBuffer = new byte[100];
                byte[] readBuffer = new byte[100];
    
                // Prepare valid read buffer
                SMBUtil.writeInt2(4, readBuffer, 10);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/RequestParamTest.java

            case "NONE":
                assertEquals(0, rp.ordinal());
                break;
            case "NO_TIMEOUT":
                assertEquals(1, rp.ordinal());
                break;
            case "NO_RETRY":
                assertEquals(2, rp.ordinal());
                break;
            case "RETAIN_PAYLOAD":
                assertEquals(3, rp.ordinal());
                break;
            default:
                fail("Unexpected name under test: " + name);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/UppercaseResponseInterceptor.kt

          @Throws(IOException::class)
          override fun read(
            sink: Buffer,
            byteCount: Long,
          ): Long {
            val buffer = Buffer()
            val read = delegate.read(buffer, byteCount)
            if (read != -1L) {
              sink.write(buffer.readByteString().toAsciiUppercase())
            }
            return read
          }
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/witness/WitnessClient.java

                    }
                    break;
                case WitnessAsyncNotifyMessage.WitnessNotificationMessage.WITNESS_IP_CHANGE:
                    if (message.getIpAddresses() != null && !message.getIpAddresses().isEmpty()) {
                        notification.setNewNodeAddress(message.getIpAddresses().get(0));
                    }
                    break;
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  10. .github/workflows/scorecard.yml

      # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
      schedule:
        - cron: '45 9 * * 0'
      push:
        branches: [ "master" ]
    
    # Declare default permissions as read only.
    permissions: read-all
    
    jobs:
      analysis:
        name: Scorecard analysis
        runs-on: ubuntu-latest
        permissions:
          # Needed to upload the results to code-scanning dashboard.
          security-events: write
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 19:19:31 UTC 2025
    - 2.9K bytes
    - Viewed (0)
Back to top