- Sort Score
- Num 10 results
- Language All
Results 331 - 340 of 975 for rock (0.02 seconds)
-
tests/test_tutorial/test_debugging/test_tutorial001.py
if sys.modules.get(MOD_NAME): del sys.modules[MOD_NAME] with unittest.mock.patch("uvicorn.run") as uvicorn_run_mock: runpy.run_module(MOD_NAME, run_name="__main__") uvicorn_run_mock.assert_called_once_with( unittest.mock.ANY, host="0.0.0.0", port=8000 ) def test_openapi_schema(client: TestClient): response = client.get("/openapi.json")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 1.8K bytes - Click Count (0) -
internal/lock/lock_nix.go
// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package lock import ( "os" "syscall" ) // Internal function implements support for both // blocking and non blocking lock type. func lockedOpenFile(path string, flag int, perm os.FileMode, lockType int) (*LockedFile, error) { switch flag { case syscall.O_RDONLY:
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Aug 19 01:35:22 GMT 2021 - 2.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java
@ExtendWith(MockitoExtension.class) @DisplayName("SmbComSetInformationResponse tests") public class SmbComSetInformationResponseTest { @Mock private Configuration mockConfig; private SmbComSetInformationResponse response; @BeforeEach void setUp() { // Setup mock configuration to avoid NPE when(mockConfig.getPid()).thenReturn(12345); response = new SmbComSetInformationResponse(mockConfig);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 4.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java
import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; /** * Test class for CommonServerMessageBlockRequest interface */ @ExtendWith(MockitoExtension.class) class CommonServerMessageBlockRequestTest { @Mock private CommonServerMessageBlockRequest request; @Mock private CommonServerMessageBlockRequest nextRequest; @MockCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.1K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacLogonInfoTest.java
void testGetters() throws Exception { // Use mocking to test getters without complex PAC data creation PacLogonInfo logonInfo = mock(PacLogonInfo.class); // Setup mock responses when(logonInfo.getUserName()).thenReturn(TEST_USERNAME); when(logonInfo.getDomainName()).thenReturn(TEST_DOMAIN); when(logonInfo.getServerName()).thenReturn(TEST_SERVER);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.3K bytes - Click Count (0) -
internal/grid/muxserver.go
} // Unlock, since we are calling deleteMux, which will call close - which will lock recvMu. if locked { m.recvMu.Unlock() defer m.recvMu.Lock() } m.parent.deleteMux(true, m.ID) } func (m *muxServer) send(msg message) { m.sendMu.Lock() defer m.sendMu.Unlock() msg.MuxID = m.ID msg.Seq = m.SendSeq m.SendSeq++ if debugPrint {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue May 27 15:19:03 GMT 2025 - 9.7K bytes - Click Count (0) -
src/test/java/jcifs/CloseableIteratorTest.java
import static org.mockito.Mockito.verify; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.mockito.Mock; /** * Test class for CloseableIterator interface functionality */ @DisplayName("CloseableIterator Tests") class CloseableIteratorTest extends BaseTest { @Mock private CloseableIterator<SmbResource> mockIterator; @Test @DisplayName("Should define close method")Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 964 bytes - Click Count (0) -
internal/logger/logger.go
API: "SYSTEM", RequestID: fmt.Sprintf("%X", time.Now().UTC().UnixNano()), } } req.RLock() defer req.RUnlock() API := "SYSTEM" switch { case req.API != "": API = req.API case subsystem != "": API += "." + subsystem } // Copy tags. We hold read lock already. tags := make(map[string]any, len(req.tags)) for _, entry := range req.tags { tags[entry.Key] = entry.Val
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 12.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
import static org.junit.jupiter.api.Assertions.assertNull; 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.mockito.Mock; import org.mockito.MockitoAnnotations; import jcifs.Configuration; import jcifs.internal.CommonServerMessageBlockRequest; /**
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java
private Configuration mockConfig; @BeforeEach void setUp() { // Mock the Configuration object mockConfig = mock(Configuration.class); // Define behavior for the OEM encoding, which is used by writeString when(mockConfig.getOemEncoding()).thenReturn(StandardCharsets.UTF_8.name()); } @Test void testConstructor() {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.2K bytes - Click Count (0)