Search Options

Results per page
Sort
Preferred Languages
Advance

Results 561 - 570 of 886 for zero (0.12 sec)

  1. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

            int offset = 10;
    
            // When
            int bytesWritten = response.writeBytesWireFormat(buffer, offset);
    
            // Then
            assertEquals(0, bytesWritten);
        }
    
        @DisplayName("Should write zero bytes at various offsets")
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 10, 50, 100, 255 })
        void testWriteBytesWireFormatAtDifferentOffsets(int offset) {
            // Given
            byte[] buffer = new byte[256];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

            }
    
            @ParameterizedTest
            @ValueSource(longs = { 1L, 100L, Long.MAX_VALUE })
            @DisplayName("isResponseAsync should return true for various non-zero asyncIds")
            void testIsResponseAsyncWithDifferentValues(long asyncId) {
                testRequest.setAsyncId(asyncId);
                assertTrue(testRequest.isResponseAsync());
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/DiscreteDomain.java

       * For example, if {@code end = next(next(next(start)))}, then {@code distance(start, end) == 3}
       * and {@code distance(end, start) == -3}. As well, {@code distance(a, a)} is always zero.
       *
       * <p>Note that this function is necessarily well-defined for any discrete type.
       *
       * @return the distance as described above, or {@link Long#MIN_VALUE} or {@link Long#MAX_VALUE} if
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  4. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

                                    scenario.scenario
                            }
                        }.firstOrNull()
                        // Fallback for new performance tests (don't use 0 to avoid division by zero)
                        ?: PerformanceTestDuration(scenario.scenario, 1)
                })
                .entries
                .map { TestProjectDuration(it.key, it.value) }
                .sortedBy { -it.totalTime }
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Thu Jul 10 02:18:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  5. src/archive/zip/writer.go

    		offset:     uint64(w.cw.count),
    	}
    
    	if strings.HasSuffix(fh.Name, "/") {
    		// Set the compression method to Store to ensure data length is truly zero,
    		// which the writeHeader method always encodes for the size fields.
    		// This is necessary as most compression formats have non-zero lengths
    		// even when compressing an empty string.
    		fh.Method = Store
    		fh.Flags &^= 0x8 // we will not write a data descriptor
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Jan 28 04:20:09 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

            @DisplayName("Should handle buffer with extra data")
            void testBufferWithExtraData() throws Exception {
                byte[] buffer = new byte[100];
                Arrays.fill(buffer, (byte) 0xFF); // Fill with non-zero values
    
                // Write valid notification data
                SMBUtil.writeInt2(24, buffer, 0);
                buffer[2] = 0x02;
                byte[] fileId = createTestData(16);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/QueuesTest.java

          checkZeroElements(q);
        }
      }
    
      private void checkZeroElements(BlockingQueue<Object> q) throws InterruptedException {
        for (boolean interruptibly : new boolean[] {true, false}) {
          // asking to drain zero elements
          assertEquals(0, drain(q, ImmutableList.of(), 0, 10, MILLISECONDS, interruptibly));
        }
      }
    
      public void testEmpty() throws Exception {
        for (BlockingQueue<Object> q : blockingQueues()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/GcFinalization.java

        throw formatRuntimeException(
            "Predicate did not become true within %d second timeout", timeoutSeconds);
      }
    
      /**
       * Waits until the given latch has {@linkplain CountDownLatch#countDown counted down} to zero,
       * invoking the garbage collector as necessary to try to ensure that this will happen.
       *
       * @throws RuntimeException if timed out or interrupted while waiting
       */
      @SuppressWarnings("removal") // b/260137033
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

            assertDoesNotThrow(() -> outputStream.write(data, 0, -1)); // negative length, returns early
            assertDoesNotThrow(() -> outputStream.write(data, 0, 0)); // zero length, returns early
    
            // These should pass through to the underlying implementation
            assertDoesNotThrow(() -> outputStream.write(data, 0, 10)); // valid - will consume first mock (10)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                assertNotNull(exception.getMessage());
                assertTrue(exception.getMessage().contains("Expected structureSize = 4"));
            }
    
            @Test
            @DisplayName("Should handle zero structure size")
            void testZeroStructureSize() {
                // Given
                byte[] buffer = new byte[10];
                SMBUtil.writeInt2(0, buffer, 0);
    
                // When & Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
Back to top