- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 2,394 for Match (0.04 sec)
-
tests/test_tutorial/test_python_types/test_tutorial009c.py
def test_say_hi(module: ModuleType): with patch("builtins.print") as mock_print: module.say_hi("FastAPI") mock_print.assert_called_once_with("Hey FastAPI!") with pytest.raises( TypeError, match=re.escape("say_hi() missing 1 required positional argument: 'name'"), ):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 777 bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/RuleManagerImpl.java
* Gets the first rule that matches the given response data. * @param responseData the response data to match against * @return the first matching rule, or null if no rule matches */ @Override public Rule getRule(final ResponseData responseData) { for (final Rule rule : ruleList) { if (rule.match(responseData)) { return rule; } } return null; }Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 3.4K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/SitemapsRuleTest.java
assertTrue(sitemapsRule.match(responseData)); InputStream is = responseData.getResponseBody(); assertTrue(is instanceof InputStream); CloseableUtil.closeQuietly(responseData); } private void assertMatchFalse(ResponseData responseData) { sitemapsRule.addRule("url", Pattern.compile(".*sitemap.*")); assertFalse(sitemapsRule.match(responseData));
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Mar 15 06:52:00 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java
assertEquals(expected.length, bytesWritten, "Number of bytes written should match expected length."); byte[] actual = new byte[bytesWritten]; System.arraycopy(dst, 0, actual, 0, bytesWritten); // Use assertArrayEquals for byte array comparison org.junit.jupiter.api.Assertions.assertArrayEquals(expected, actual, "Byte array content should match the expected format."); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvPairsTest.java
AvPair decoded = decodedPairs.get(i); assertEquals(original.getType(), decoded.getType(), "Type should match at index " + i); assertTrue(Arrays.equals(original.getRaw(), decoded.getRaw()), "Raw data should match at index " + i); } } /** * Test decode with AvSingleHost type */ @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvTargetNameTest.java
// Verify the raw bytes are correctly stored assertArrayEquals(rawBytes, avTargetName.getRaw(), "Raw bytes should match the input"); } /** * Test constructor with a target name string. * Verifies that the string is correctly encoded to UTF-16LE bytes and stored. */ @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpAuthenticationHolder.java
authenticationList.add(auth); } } /** * Retrieves an FtpAuthentication object that matches the given path. * @param path The path to match. * @return The matching FtpAuthentication object, or null if no match is found. */ public FtpAuthentication get(final String path) { if (path == null) { return null; }
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 1.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AllocInfoTest.java
when(mockAllocInfo.getFree()).thenReturn(400L); assertEquals(1000L, mockAllocInfo.getCapacity(), "capacity should match stubbed value"); assertEquals(400L, mockAllocInfo.getFree(), "free space should match stubbed value"); verify(mockAllocInfo, times(1)).getCapacity(); verify(mockAllocInfo, times(1)).getFree(); } /**
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
integration-tests/gradle/gradlew.bat
if %ERRORLEVEL% equ 0 goto execute echo. 1>&2 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 echo. 1>&2 echo Please set the JAVA_HOME variable in your environment to match the 1>&2 echo location of your Java installation. 1>&2 goto fail :findJavaFromJavaHome set JAVA_HOME=%JAVA_HOME:"=% set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Jul 21 19:14:29 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java
// Reset buffer position for decoding buf.reset(); NdrHyper decoded = new NdrHyper(0); decoded.decode(buf); assertEquals(original, decoded.value, "Decoded value should match encoded value"); } /** * Parameterised test for a selection of edge and typical values. */ @ParameterizedTest(name = "Encode and decode {0}")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0)