- Sort Score
- Num 10 results
- Language All
Results 431 - 440 of 940 for sock (0.03 seconds)
-
tests/test_tutorial/test_python_types/test_tutorial009c.py
import importlib import re from types import ModuleType from unittest.mock import patch import pytest from ...utils import needs_py310 @pytest.fixture( name="module", params=[ pytest.param("tutorial009c_py39"), pytest.param("tutorial009c_py310", marks=needs_py310), ], ) def get_module(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.python_types.{request.param}")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 777 bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/TransCallNamedPipeResponse.java
if (pipe.pipeIn != null) { final TransactNamedPipeInputStream in = (TransactNamedPipeInputStream) pipe.pipeIn; synchronized (in.lock) { in.receive(buffer, bufferIndex, len); in.lock.notify(); } } return len; } @Override public String toString() {
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 2.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/AllocInfoTest.java
import org.junit.jupiter.params.provider.ValueSource; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; /** * Tests for the {@link AllocInfo} interface. * Since {@code AllocInfo} only declares getters, the tests focus on * verifying that implementations honour the contract. */ @ExtendWith(MockitoExtension.class) public class AllocInfoTest { @Mock AllocInfo mockAllocInfo; /**Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.4K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/LazyLogger.java
import java.util.logging.Logger; import org.jspecify.annotations.Nullable; /** A holder for a {@link Logger} that is initialized only when requested. */ @GwtCompatible final class LazyLogger { private final Object lock = new Object(); private final String loggerName; private volatile @Nullable Logger logger; LazyLogger(Class<?> ownerOfLogger) { this.loggerName = ownerOfLogger.getName(); } Logger get() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java
private CIFSContext mockContext; private Smb2QueryInfoRequest request; private byte[] testFileId; @BeforeEach void setUp() { mockConfig = mock(Configuration.class); mockContext = mock(CIFSContext.class); when(mockContext.getConfig()).thenReturn(mockConfig); when(mockConfig.getMaximumBufferSize()).thenReturn(65536); when(mockConfig.getListSize()).thenReturn(65536);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 22.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java
import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.CIFSContext; import jcifs.Configuration; import jcifs.internal.smb2.Smb2Constants; import jcifs.internal.util.SMBUtil; @ExtendWith(MockitoExtension.class) class Smb2LogoffRequestTest { @Mock Configuration configuration; @Mock CIFSContext cifsContext;Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java
import org.junit.jupiter.params.provider.MethodSource; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.CIFSContext; import jcifs.CIFSException; import jcifs.Configuration; import jcifs.spnego.NegTokenInit; @ExtendWith(MockitoExtension.class) class Kerb5AuthenticatorTest { @Mock CIFSContext tc; @Mock Configuration config;Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/processor/impl/SitemapsResponseProcessorTest.java
import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.MockitoAnnotations; /** * Test class for {@link SitemapsResponseProcessor}. */ public class SitemapsResponseProcessorTest extends PlainTestCase { @InjectMocks private SitemapsResponseProcessor processor; @Mock private CrawlerContainer crawlerContainer; @Mock private SitemapsHelper sitemapsHelper;Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Thu Nov 13 13:29:22 GMT 2025 - 12K bytes - Click Count (0) -
cmd/iam-store.go
type IAMStorageAPI interface { // The role of the read-write lock is to prevent go routines from // concurrently reading and writing the IAM storage. The (r)lock() // functions return the iamCache. The cache can be safely written to // only when returned by `lock()`. lock() *iamCache unlock() rlock() *iamCache runlock() getUsersSysType() UsersSysTypeCreated: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 87.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java
Trans2QueryFSInformationResponse response = new Trans2QueryFSInformationResponse(Trans2QueryFSInformationResponse.SMB_INFO_ALLOCATION); byte[] buffer = new byte[20]; // Mock data for SmbInfoAllocation // idFileSystem (4 bytes, skipped) writeInt4(100, buffer, 4); // sectPerAlloc writeInt4(1000, buffer, 8); // alloc writeInt4(500, buffer, 12); // freeCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.6K bytes - Click Count (0)