- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 955 for Cock (0.04 seconds)
-
internal/lru/lru.go
c.mu.Lock() bucketIdx := c.nextCleanupBucket timeToExpire := time.Until(c.buckets[bucketIdx].newestEntry) // wait for newest entry to expire before cleanup without holding lock if timeToExpire > 0 { c.mu.Unlock() time.Sleep(timeToExpire) c.mu.Lock() } for _, ent := range c.buckets[bucketIdx].entries { c.removeElement(ent) } c.nextCleanupBucket = (c.nextCleanupBucket + 1) % numBuckets
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:35:55 GMT 2026 - 12.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
} static TestCondition create() { Lock lock = new ReentrantLock(); Condition condition = lock.newCondition(); return new TestCondition(lock, condition); } @Override public void await() throws InterruptedException { lock.lock(); try { condition.await(); } finally { lock.unlock(); } } @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 38.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java
class FileEntryAdapterIteratorTest { @Mock private CloseableIterator<FileEntry> delegate; @Mock private ResourceFilter filter; @Mock private SmbResource parent; @Mock private SmbResource resource; @Mock private FileEntry fileEntry; /** * Test implementation that always returns the same mock resource */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 10.6K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
class DcerpcPipeHandleTest { @Mock private CIFSContext mockContext; @Mock private SmbNamedPipe mockSmbNamedPipe; @Mock private SmbPipeHandleInternal mockSmbPipeHandleInternal; @Mock private DcerpcBinding mockDcerpcBinding; @Mock private SmbResourceLocator mockSmbResourceLocator; @Mock private SmbPipeHandle mockSmbPipeHandle; @Mock private BufferCache mockBufferCache;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/UpdateLabelJobTest.java
protected void setUp(TestInfo testInfo) throws Exception { super.setUp(testInfo); updateLabelJob = new UpdateLabelJob(); // Setup mock components setupMockComponents(); } private void setupMockComponents() { // Mock SearchEngineClient SearchEngineClient mockSearchEngineClient = new SearchEngineClient() { @Override public long updateByQuery(String index,
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 9.6K bytes - Click Count (0) -
internal/lock/lock_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package lock import ( "os" "testing" "time" ) // Test lock fails. func TestLockFail(t *testing.T) { f, err := os.CreateTemp(t.TempDir(), "lock") if err != nil { t.Fatal(err) } f.Close() defer func() { err = os.Remove(f.Name()) if err != nil { t.Fatal(err)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 3.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
} @Test @DisplayName("Should create proper response object") void testCreateResponse() { // Given Configuration mockConfig = mock(Configuration.class); CIFSContext mockContext = mock(CIFSContext.class); when(mockContext.getConfig()).thenReturn(mockConfig); Smb2TreeDisconnectRequest request = new Smb2TreeDisconnectRequest(mockConfig); // WhenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
// Arrange CIFSContext ctx = mock(CIFSContext.class); SmbTreeConnectionTrace trace = new SmbTreeConnectionTrace(ctx); // Act & Assert assertEquals(-1L, trace.getTreeId()); } @Test @DisplayName("getConfig(): delegates to context") void getConfig_delegatesToContext() { // Arrange CIFSContext ctx = mock(CIFSContext.class);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.7K bytes - Click Count (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/services/RequestImplementationTest.java
import static org.mockito.Mockito.mock; class RequestImplementationTest { @Test void testArtifactResolverRequestEquality() { Session session = mock(Session.class); ArtifactCoordinates coords1 = mock(ArtifactCoordinates.class); ArtifactCoordinates coords2 = mock(ArtifactCoordinates.class); RemoteRepository repo1 = mock(RemoteRepository.class);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 4.8K bytes - Click Count (0) -
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(() -> {}, 10, MINUTES); mock.assertLastMethodCalled("scheduleRunnable", 10, MINUTES); Future<?> unused2 = testExecutor.schedule(() -> null, 5, SECONDS); mock.assertLastMethodCalled("scheduleCallable", 5, SECONDS); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 7.5K bytes - Click Count (0)