- Sort Score
- Result 10 results
- Languages All
Results 291 - 300 of 2,810 for when (0.05 sec)
-
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java
request.setFileInfoClass((byte) 0x04); request.setAdditionalInformation(0x12345678); Encodable mockInfo = mock(Encodable.class); when(mockInfo.encode(any(byte[].class), anyInt())).thenReturn(20); when(mockInfo.size()).thenReturn(20); request.setInfo(mockInfo); // Set up header start for offset calculation try {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer.go
"io" "sync" "unsafe" ) var ( // ErrTooMuchDataToWrite is returned when the data to write is more than the buffer size. ErrTooMuchDataToWrite = errors.New("too much data to write") // ErrIsFull is returned when the buffer is full and not blocking. ErrIsFull = errors.New("ringbuffer is full") // ErrIsEmpty is returned when the buffer is empty and not blocking. ErrIsEmpty = errors.New("ringbuffer is empty")
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 13.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcSecurityProviderTest.java
} @Test void testWrapMethodThrowsDcerpcException() throws DcerpcException { // Configure the mock to throw DcerpcException when wrap is called doThrow(new DcerpcException("Test wrap exception")).when(dcerpcSecurityProvider).wrap(mockNdrBuffer); // Assert that calling wrap throws DcerpcExceptionRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AllocInfoTest.java
* implementation. */ @Test @DisplayName("verify getters return stubbed values") void testGettersHappyPath() { when(mockAllocInfo.getCapacity()).thenReturn(1000L); when(mockAllocInfo.getFree()).thenReturn(400L); assertEquals(1000L, mockAllocInfo.getCapacity(), "capacity should match stubbed value");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java
@DisplayName("Should return root cause when set") void testGetRootCause() { Exception rootCause = new IllegalStateException("Test root cause"); TransportException exception = new TransportException("Message", rootCause); assertEquals(rootCause, exception.getRootCause()); } @Test @DisplayName("Should return null when no root cause")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
cmd/object-api-interface.go
DeletePrefixObject bool // set true when object's erasure set is resolvable by object name (using getHashedSetIndex) Speedtest bool // object call specifically meant for SpeedTest code, set to 'true' when invoked by SpeedtestHandler. // Use the maximum parity (N/2), used when saving server configuration files MaxParity bool
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java
} // Test channel selection with mock request when no channels available ServerMessageBlock2Request mockRequest = mock(ServerMessageBlock2Request.class); when(mockRequest.getTreeId()).thenReturn(123); // Should throw NoAvailableChannelException when no healthy channelsRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 8.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/ServerDataTest.java
public void testSflagsField(byte value) { // When serverData.sflags = value; // Then assertEquals(value, serverData.sflags); } /** * Test setting and getting int fields */ @Test @DisplayName("Test int fields with various values") public void testIntFields() { // When serverData.sflags2 = 0x12345678;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17K bytes - Viewed (0) -
tests/delete_test.go
if err := DB.Create(&users).Error; err != nil { t.Errorf("errors happened when create: %v", err) } for _, user := range users { if user.ID == 0 { t.Fatalf("user's primary key should has value after create, got : %v", user.ID) } } if res := DB.Delete(&users[1]); res.Error != nil || res.RowsAffected != 1 { t.Errorf("errors happened when delete: %v, affected: %v", res.Error, res.RowsAffected) } var result User
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 9.5K bytes - Viewed (0) -
.github/PULL_REQUEST_TEMPLATE.md
#### Which issue(s) this PR is related to: <!-- Please link relevant issues to help with tracking. To automatically close the linked issue(s) when this PR is merged, add the word "Fixes" before the issue number or link. Do not use "Fixes" if the PR is of kind `failing-test` or `flake`. Reference KEPs when applicable in addition to specific issues. Examples: Fixes #<issue number> <issue link> (issue in a different repository)
Registered: Fri Dec 26 09:05:12 UTC 2025 - Last Modified: Fri Jun 06 14:40:00 UTC 2025 - 3.1K bytes - Viewed (0)