- Sort Score
- Num 10 results
- Language All
Results 521 - 530 of 975 for rock (0.02 seconds)
-
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.mock; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import jcifs.Configuration;
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/FileEntryTest.java
import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; import org.mockito.InOrder; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; @ExtendWith(MockitoExtension.class) class FileEntryTest { @Mock FileEntry mockEntry; // Simple fake implementation to exercise the interface without mocksCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java
import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import org.junit.jupiter.api.Test; import jcifs.Configuration; class AvSingleHostTest { /** * Test constructor AvSingleHost(byte[] raw).Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.4K 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)