- Sort Score
- Result 10 results
- Languages All
Results 551 - 560 of 841 for Zero (0.57 sec)
-
android/guava-tests/test/com/google/common/base/SuppliersTest.java
public void testMemoizeWithExpiration_durationNegative() throws InterruptedException { assertThrows( IllegalArgumentException.class, () -> Suppliers.memoizeWithExpiration(() -> "", Duration.ZERO)); assertThrows( IllegalArgumentException.class, () -> Suppliers.memoizeWithExpiration(() -> "", Duration.ofMillis(-1))); } @J2ktIncompatible
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
assertFalse(response.isValidTid()); // Test valid TID setTreeIdMethod.invoke(response, 100); assertTrue(response.isValidTid()); // Test zero TID (valid) setTreeIdMethod.invoke(response, 0); assertTrue(response.isValidTid()); } @Test @DisplayName("Should return null for getService") void testGetService() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/cmd/cgo/doc.go
C's union types are represented as a Go byte array with the same length. Go structs cannot embed fields with C types. Go code cannot refer to zero-sized fields that occur at the end of non-empty C structs. To get the address of such a field (which is the only operation you can do with a zero-sized field) you must take the address of the struct and add the size of the struct. Cgo translates C types into equivalent unexported Go types.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Dec 11 23:57:34 UTC 2024 - 44K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
// When request = new Smb2NegotiateRequest(mockConfig, 0); // Then assertArrayEquals(testMachineId, request.getClientGuid()); } @Test @DisplayName("Should use zero GUID for SMB2.0.2") void testClientGuidSmb202() { // Given when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB202);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
void testReadAndXWireFormatWithErrorCode() { DummyPlainSMB next = new DummyPlainSMB(); DummyAndXBlock block = new DummyAndXBlock(next); block.errorCode = 1; // any non-zero error code should inhibit chaining block.headerStart = 0; byte[] buf = new byte[64]; buf[0] = 4; // wordCount buf[1] = 0x42; // andxCommand present
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
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) -
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) -
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) -
.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) -
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)