- Sort Score
- Num 10 results
- Language All
Results 481 - 490 of 940 for sock (0.03 seconds)
-
internal/config/lambda/event/targetlist.go
type TargetList struct { sync.RWMutex targets map[TargetID]Target } // Add - adds unique target to target list. func (list *TargetList) Add(targets ...Target) error { list.Lock() defer list.Unlock() for _, target := range targets { if _, ok := list.targets[target.ID()]; ok { return fmt.Errorf("target %v already exists", target.ID()) } list.targets[target.ID()] = target }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 4.3K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java
} /* * This is an unsynchronized read! After the read, the function returns immediately or acquires * the lock to check again. Since an IDLE state was observed inside the preceding synchronized * block, and reference field assignment is atomic, this may save reacquiring the lock when * another thread or the worker task has cleared the count and set the state. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 10.6K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/SequentialExecutor.java
} /* * This is an unsynchronized read! After the read, the function returns immediately or acquires * the lock to check again. Since an IDLE state was observed inside the preceding synchronized * block, and reference field assignment is atomic, this may save reacquiring the lock when * another thread or the worker task has cleared the count and set the state. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 10.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java
@Test @DisplayName("Available returns underlying stream available when no message buffered") void availableReturnsUnderlyingWhenNoMessage() throws IOException { // Mock input stream that reports available bytes InputStream mockIn = mock(InputStream.class); when(mockIn.available()).thenReturn(42); SocketInputStream sis = new SocketInputStream(mockIn);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.2K bytes - Click Count (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/SimplexTransferListenerTest.java
TransferResource resource = new TransferResource(null, null, "http://maven.org/test/test-resource", null, null); RepositorySystemSession session = Mockito.mock(RepositorySystemSession.class); TransferListener delegate = Mockito.mock(TransferListener.class); SimplexTransferListener listener = new SimplexTransferListener(delegate);
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun Dec 01 19:41:22 GMT 2024 - 5K bytes - Click Count (0) -
tests/test_tutorial/test_python_types/test_tutorial006.py
from unittest.mock import patch from docs_src.python_types.tutorial006_py39 import process_items def test_process_items(): with patch("builtins.print") as mock_print: process_items(["item_a", "item_b", "item_c"]) assert mock_print.call_count == 3 call_args = [arg.args for arg in mock_print.call_args_list] assert call_args == [ ("item_a",), ("item_b",), ("item_c",),
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 426 bytes - Click Count (0) -
internal/once/init.go
// if it is not successful yet. func (l *Init) Do(f func() error) error { if atomic.LoadUint32(&l.done) == 0 { return l.do(f) } return nil } func (l *Init) do(f func() error) error { l.m.Lock() defer l.m.Unlock() if atomic.LoadUint32(&l.done) == 0 { if err := f(); err != nil { return err } // Mark as done only when f() is successful atomic.StoreUint32(&l.done, 1) } return nil }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue May 09 04:20:31 GMT 2023 - 2.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java
import org.junit.jupiter.api.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import jcifs.Configuration; import jcifs.internal.SMBProtocolDecodingException; import jcifs.smb.FileEntry; /** * Test class for SmbComTransactionResponse */ class SmbComTransactionResponseTest { @Mock private Configuration mockConfig; @Mock private FileEntry mockFileEntry1; @MockCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.4K bytes - Click Count (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/util/CrawlingParameterUtilTest.java
CrawlingParameterUtil.setUrlQueueService(null); CrawlingParameterUtil.setDataService(null); super.tearDown(); } // Helper method to create a simple mock UrlQueue private UrlQueue<?> createMockUrlQueue(final String sessionId, final String url) { return new UrlQueue<Object>() { @Override public Object getId() { return null;
Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Mon Nov 24 03:59:47 GMT 2025 - 14.6K bytes - Click Count (0) -
docs/de/docs/advanced/testing-dependencies.md
Sie möchten den externen Anbieter wahrscheinlich einmal testen, ihn aber nicht unbedingt bei jedem weiteren ausgeführten Test aufrufen. In diesem Fall können Sie die Abhängigkeit, die diesen Anbieter aufruft, überschreiben und eine benutzerdefinierte Abhängigkeit verwenden, die einen Mock-Benutzer zurückgibt, nur für Ihre Tests.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Sep 20 15:10:09 GMT 2025 - 3.2K bytes - Click Count (0)