- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 149 for coverage (0.05 sec)
-
tests/test_tutorial/test_dependencies/test_tutorial007.py
import asyncio from contextlib import asynccontextmanager from unittest.mock import Mock, patch from docs_src.dependencies.tutorial007_py39 import get_db def test_get_db(): # Just for coverage async def test_async_gen(): cm = asynccontextmanager(get_db) async with cm() as db_session: return db_session dbsession_moock = Mock() with patch(
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 642 bytes - Viewed (0) -
README.md
# Run specific test class mvn test -Dtest=SuggesterTest # Run with verbose output mvn surefire:test -Dmaven.surefire.debug=true ``` ### Running Tests with Coverage ```bash mvn clean jacoco:prepare-agent test jacoco:report ``` Coverage reports are generated in `target/site/jacoco/`. ## Common Use Cases ### E-commerce Search ```java // Product search suggestions
Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Sun Aug 31 03:31:14 UTC 2025 - 12.1K bytes - Viewed (1) -
.teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Thu Jul 10 02:18:03 UTC 2025 - 16.6K bytes - Viewed (0) -
tests/test_tutorial/test_debugging/test_tutorial001.py
def test_get_root(client: TestClient): response = client.get("/") assert response.status_code == 200 assert response.json() == {"hello world": "ba"} def test_uvicorn_run_called_when_run_as_main(): # Just for coverage 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__")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 1.8K bytes - Viewed (0) -
tests/test_depends_hashable.py
# Ref: https://github.com/fastapi/fastapi/pull/14320 from fastapi import Depends, Security def dep(): pass def test_depends_hashable(): dep() # just for coverage d1 = Depends(dep) d2 = Depends(dep) d3 = Depends(dep, scope="function") d4 = Depends(dep, scope="function") s1 = Security(dep) s2 = Security(dep) assert hash(d1) == hash(d2)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 19 16:50:18 UTC 2025 - 596 bytes - Viewed (0) -
docs/en/docs/features.md
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 9.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java
/** * Tests that the {@code ClassLoader} of {@link FinalizableReferenceQueue} can be unloaded. These * tests are separate from {@link FinalizableReferenceQueueTest} so that they can be excluded from * coverage runs, as the coverage system interferes with them. * * @author Eamonn McManus */ @AndroidIncompatible @RunWith(JUnit4.class) @NullUnmarked public class FinalizableReferenceQueueClassLoaderUnloadingTest { /*Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 7.6K bytes - Viewed (0) -
tests/test_datastructures.py
assert response.status_code == 200, response.text assert response.json() == {"filename": "test.txt"} assert testing_file_store assert testing_file_store[0].file.closed # For UploadFile coverage, segments copied from Starlette tests @pytest.mark.anyio async def test_upload_file(): stream = io.BytesIO(b"data") file = UploadFile(filename="file", file=stream, size=4)Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 1.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java
@Test void testWriteParameterWordsWireFormat() { // This method is empty, just call it for coverage assertEquals(0, response.writeParameterWordsWireFormat(new byte[0], 0)); } @Test void testWriteBytesWireFormat() { // This method is empty, just call it for coverage assertEquals(0, response.writeBytesWireFormat(new byte[0], 0)); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/jcifs/MsrpcEnumerateAliasesInDomainTest.java
// The super constructor is called with (domainHandle, 0, acct_flags, null, 0) // We can't directly assert these values on the superclass fields without reflection or a testable superclass. // For 100% coverage, we'd need to ensure the superclass constructor is indeed called with these values. // However, given the current structure, testing the fields set by MsrpcEnumerateAliasesInDomain itself is the primary focus. }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0)