- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 3,796 for Get (0.01 sec)
-
android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java
assertEquals(Integer.valueOf(1), map.get("foo")); assertNull(map.putIfAbsent("bar", 3)); assertEquals(Integer.valueOf(3), map.get("bar")); } public void testRemove() { TestMap map = new TestMap(); map.put("foo", 1); assertFalse(map.remove("foo", 2)); assertFalse(map.remove("bar", 1)); assertEquals(Integer.valueOf(1), map.get("foo")); assertTrue(map.remove("foo", 1));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.4K bytes - Viewed (0) -
internal/config/drive/drive.go
MaxTimeout: 30 * time.Second, } if err = config.CheckValidKeys(config.DriveSubSys, kvs, DefaultKVS); err != nil { return cfg, err } // if not set. Get default value from environment d := env.Get(EnvMaxDriveTimeout, env.Get(EnvMaxDriveTimeoutLegacy, env.Get(EnvMaxDiskTimeoutLegacy, kvs.GetWithDefault(MaxTimeout, DefaultKVS)))) if d == "" { cfg.MaxTimeout = 30 * time.Second } else { dur, _ := time.ParseDuration(d)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 3K bytes - Viewed (0) -
tests/test_security_api_key_header_description.py
user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: User = Depends(get_current_user)): return current_user client = TestClient(app) def test_security_api_key(): response = client.get("/users/me", headers={"key": "secret"}) assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2K bytes - Viewed (0) -
tests/test_serialize_response.py
name: str price: Optional[float] = None owner_ids: Optional[List[int]] = None @app.get("/items/valid", response_model=Item) def get_valid(): return {"name": "valid", "price": 1.0} @app.get("/items/coerce", response_model=Item) def get_coerce(): return {"name": "coerce", "price": "1.0"} @app.get("/items/validlist", response_model=List[Item]) def get_validlist(): return [
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Aug 03 12:29:07 UTC 2020 - 1.4K bytes - Viewed (0) -
build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportWorkAction.kt
val KtNamedDeclaration.isIncubating: Boolean get() = annotationEntries.any { it.shortName?.asString() == "Incubating" } private val KtNamedDeclaration.typeParametersString: String get() = (this as? KtCallableDeclaration)?.typeParameterList?.let { "${it.text} " } ?: "" private val KtNamedDeclaration.fullyQualifiedName: String get() = fqName!!.asString() private
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Jun 28 08:29:28 UTC 2024 - 12.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java
0, unhashables.e0(), 2, "hey you", 0, unhashables.e1()); assertEquals(2, multimap.get(0).size()); assertTrue(multimap.get(0).contains(unhashables.e0())); assertTrue(multimap.get(0).contains(unhashables.e1())); assertTrue(multimap.get(2).contains("hey you")); } public void testEquals() { new EqualsTester()
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 6.8K bytes - Viewed (0) -
tests/test_repeated_parameter_alias.py
from fastapi.testclient import TestClient app = FastAPI() @app.get("/{repeated_alias}") def get_parameters_with_repeated_aliases( path: str = Path(..., alias="repeated_alias"), query: str = Query(..., alias="repeated_alias"), ): return {"path": path, "query": query} client = TestClient(app) def test_get_parameters(): response = client.get("/test_path", params={"repeated_alias": "test_query"})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
val response1 = get(server.url("/")) assertThat(response1.body.string()).isEqualTo("A") assertThat(response1.header("Allow")).isEqualTo("GET, HEAD") val response2 = get(server.url("/")) assertThat(response2.body.string()).isEqualTo("A") assertThat(response2.header("Allow")).isEqualTo("GET, HEAD, PUT") } @Test fun getHeadersReturnsCachedHopByHopHeaders() { server.enqueue(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 108.6K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_lib.cc
dt->AsyncWait(async_wait_status.get()); // Prefer non cancelled errors to uncover real failures. if (TF_GetCode(async_wait_status.get()) != TF_OK && (first_bad_status == nullptr || TF_GetCode(first_bad_status.get()) == TF_CANCELLED)) { first_bad_status.reset(TF_NewStatus()); TF_SetStatus(first_bad_status.get(), TF_GetCode(async_wait_status.get()),
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Mon Oct 21 04:14:14 UTC 2024 - 25.9K bytes - Viewed (0) -
tests/test_security_http_digest.py
app = FastAPI() security = HTTPDigest() @app.get("/users/me") def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)): return {"scheme": credentials.scheme, "credentials": credentials.credentials} client = TestClient(app) def test_security_http_digest(): response = client.get("/users/me", headers={"Authorization": "Digest foobar"})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2K bytes - Viewed (0)