- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 891 for Cock (0.02 sec)
-
guava/src/com/google/common/util/concurrent/AbstractScheduledService.java
* always under a lock. */ private static final class SupplantableFuture implements Cancellable { private final ReentrantLock lock; @GuardedBy("lock") private Future<@Nullable Void> currentFuture; SupplantableFuture(ReentrantLock lock, Future<@Nullable Void> currentFuture) { this.lock = lock; this.currentFuture = currentFuture; }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 27.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/NotifyResponseTest.java
*/ class NotifyResponseTest { @Mock private Configuration mockConfig; @Mock private FileNotifyInformation mockNotifyInfo1; @Mock private FileNotifyInformation mockNotifyInfo2; @Mock private CommonServerMessageBlockRequest mockRequest; /** * Mock implementation of NotifyResponse for testing interface behavior */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
cmd/local-locker_test.go
} toUnLock = toUnLock[:0] for k, v := range l.lockMap { for _, lock := range v { toUnLock = append(toUnLock, dsync.LockArgs{Resources: []string{k}, UID: lock.UID, Owner: lock.Owner}) } } start = time.Now() for _, lock := range toUnLock { ok, err := l.RUnlock(t.Context(), lock) if err != nil || !ok { t.Fatal(err) } }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 11.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/DfsImplTest.java
@BeforeEach void setUp() throws IOException { // Mock the CIFSContext and its dependencies mockContext = mock(CIFSContext.class); mockConfig = mock(Configuration.class); mockCredentials = mock(Credentials.class); mockTransportPool = mock(SmbTransportPool.class); // Set up mock behaviors when(mockContext.getConfig()).thenReturn(mockConfig);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmServletTest.java
private TestNtlmServlet ntlmServlet; @Mock private ServletConfig servletConfig; @Mock private HttpServletRequest request; @Mock private HttpServletResponse response; @Mock private HttpSession session; @Mock private CIFSContext cifsContext; @Mock private Configuration configuration; @Mock private jcifs.SmbTransportPool transportPool;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
@ExtendWith(MockitoExtension.class) class SmbFileOutputStreamTest { @Mock private SmbFile mockFile; @Mock private SmbTreeHandleImpl mockTreeHandle; @Mock private SmbFileHandleImpl mockFileHandle; @Mock private Configuration mockConfig; @Mock private Smb2WriteResponse mockWriteResponse; private SmbFileOutputStream outputStream;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
@ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) class SmbResourceLocatorImplTest { @Mock private CIFSContext ctx; @Mock private Configuration config; @Mock private Credentials creds; @Mock private NameServiceClient nsc; // Minimal URLStreamHandler to allow creating smb:// URLs in testsRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
internal/bucket/bandwidth/measurement.go
func (m *bucketMeasurement) updateExponentialMovingAverage(endTime time.Time) { // Calculate aggregate avg bandwidth and exp window avg m.lock.Lock() defer func() { m.startTime = endTime m.lock.Unlock() }() if m.startTime.IsZero() { return } if endTime.Before(m.startTime) { return } duration := endTime.Sub(m.startTime)
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sat Jun 03 20:41:51 UTC 2023 - 2.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java
}; public void testSchedule() { MockExecutor mock = new MockExecutor(); TestExecutor testExecutor = new TestExecutor(mock); Future<?> unused1 = testExecutor.schedule(DO_NOTHING, 10, MINUTES); mock.assertLastMethodCalled("scheduleRunnable", 10, MINUTES); Future<?> unused2 = testExecutor.schedule(callable(DO_NOTHING), 5, SECONDS); mock.assertLastMethodCalled("scheduleCallable", 5, SECONDS); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInformationTest.java
} } } /** * Test mock implementation of FileInformation interface */ @Test @DisplayName("Test FileInformation interface mock implementation") void testFileInformationMockImplementation() { // Create mock FileInformation mockFileInfo = mock(FileInformation.class); // Define behaviorRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0)