- Sort Score
- Num 10 results
- Language All
Results 881 - 890 of 2,199 for gets (0.02 seconds)
-
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt
} } private val propertyGetterNameRegex = "^get[A-Z].*$".toRegex() private val propertyIsGetterNameRegex = "^is[A-Z].*$".toRegex() private val propertySetterNameRegex = "^set[A-Z].*$".toRegex() private val JApiCompatibility.newCtMember: CtClassOrCtMember get() = when (this) { is JApiClass -> newClass.get() is JApiConstructor -> newConstructor.get()
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Jul 08 07:02:19 GMT 2025 - 13.2K bytes - Click Count (0) -
tests/test_param_in_path_and_dependency.py
async def user_exists(user_id: int): return True @app.get("/users/{user_id}", dependencies=[Depends(user_exists)]) async def read_users(user_id: int): pass client = TestClient(app) def test_read_users(): response = client.get("/users/42") assert response.status_code == 200, response.text def test_openapi_schema(): response = client.get("/openapi.json") data = response.json()
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 3.1K bytes - Click Count (0) -
tests/test_tutorial/test_dependencies/test_tutorial008d.py
def test_get_no_item(mod: ModuleType): client = TestClient(mod.app) response = client.get("/items/foo") assert response.status_code == 404, response.text assert response.json() == {"detail": "Item not found, there's only a plumbus here"} def test_get(mod: ModuleType): client = TestClient(mod.app) response = client.get("/items/plumbus") assert response.status_code == 200, response.text
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1.4K bytes - Click Count (0) -
internal/once/singleton.go
// Until the value is set all Get() calls will block. type Singleton[T any] struct { v *T set chan struct{} } // NewSingleton creates a new unset singleton. func NewSingleton[T any]() *Singleton[T] { return &Singleton[T]{set: make(chan struct{}), v: nil} } // Get will return the singleton value. func (s *Singleton[T]) Get() *T { <-s.set return s.v }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Aug 15 12:04:40 GMT 2024 - 952 bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/MavenExecutionPlan.java
// TODO plugins that need downloading // TODO project dependencies that need downloading // TODO unfortunately the plugins need to be downloaded in order to get the plugin.xml file. need to externalize this // from the plugin archive. // TODO this will be the class that people get in IDEs to modify /** * MavenExecutionPlan */ public class MavenExecutionPlan implements Iterable<ExecutionPlanItem> { /*
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 6.3K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/XmlExtractor.java
/** * Returns the XML encoding pattern. * @return The XML encoding pattern. */ public Pattern getXmlEncodingPattern() { return xmlEncodingPattern; } /** * Sets the XML encoding pattern. * @param metaCharsetPattern The XML encoding pattern. */ public void setXmlEncodingPattern(final Pattern metaCharsetPattern) { xmlEncodingPattern = metaCharsetPattern; }Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Sun Jul 06 02:13:03 GMT 2025 - 2.6K bytes - Click Count (0) -
tests/test_get_model_definitions_formfeed_escape.py
app = FastAPI() @app.get("/facilities/{facility_id}") def get_facility(facility_id: str) -> Facility: return Facility( id=facility_id, address=Address(line_1="123 Main St", city="Anytown", state_province="CA"), ) client = TestClient(app) return client def test_get(client: TestClient): response = client.get("/facilities/42")Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 5.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheLoaderTest.java
assertThat(loadCount.get()).isEqualTo(2); assertThat(reloadCount.get()).isEqualTo(1); assertThat(loadAllCount.get()).isEqualTo(2); executor.runNext(); assertThat(loadCount.get()).isEqualTo(2); assertThat(reloadCount.get()).isEqualTo(2); assertThat(loadAllCount.get()).isEqualTo(2); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 3.8K bytes - Click Count (0) -
tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py
return token app = FastAPI(dependencies=[Depends(get_token)]) @app.get("/admin", dependencies=[Security(get_token, scopes=["read", "write"])]) async def read_admin(): return {"message": "Admin Access"} client = TestClient(app) def test_read_admin(): response = client.get("/admin", headers={"Authorization": "Bearer faketoken"}) assert response.status_code == 200, response.text
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 2.6K bytes - Click Count (0) -
tests/test_tutorial/test_security/test_tutorial002.py
return client def test_no_token(client: TestClient): response = client.get("/users/me") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} assert response.headers["WWW-Authenticate"] == "Bearer" def test_token(client: TestClient): response = client.get("/users/me", headers={"Authorization": "Bearer testtoken"})
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 2.2K bytes - Click Count (0)