- Sort Score
- Result 10 results
- Languages All
Results 541 - 550 of 1,855 for Rust (0.12 sec)
-
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
return freshness.get(); } @SuppressWarnings("removal") // b/321209431 -- maybe just use valueOf here? @Generates Integer generateInteger() { return new Integer(generateInt()); } @Generates long generateLong() { return generateInt(); } @SuppressWarnings("removal") // b/321209431 -- maybe just use valueOf here? @Generates Long generateLongObject() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 28.7K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Uninterruptibles.java
try { long remainingNanos = unit.toNanos(timeout); long end = System.nanoTime() + remainingNanos; while (true) { try { // CountDownLatch treats negative timeouts just like zero. return latch.await(remainingNanos, NANOSECONDS); } catch (InterruptedException e) { interrupted = true; remainingNanos = end - System.nanoTime(); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:51:36 UTC 2024 - 19.1K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Longs.java
* @throws IllegalArgumentException if {@code min > max} * @since 21.0 */ public static long constrainToRange(long value, long min, long max) { checkArgument(min <= max, "min (%s) must be less than or equal to max (%s)", min, max); return Math.min(Math.max(value, min), max); } /** * Returns the values from each provided array combined into a single array. For example, {@code
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 29.3K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Longs.java
* @throws IllegalArgumentException if {@code min > max} * @since 21.0 */ public static long constrainToRange(long value, long min, long max) { checkArgument(min <= max, "min (%s) must be less than or equal to max (%s)", min, max); return Math.min(Math.max(value, min), max); } /** * Returns the values from each provided array combined into a single array. For example, {@code
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 15:52:18 UTC 2024 - 29K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/SerializableTesterTest.java
boolean errorNotThrown = false; try { SerializableTester.reserializeAndAssert(orig); errorNotThrown = true; } catch (AssertionFailedError error) { // expected assertContains("must be Object#equals to", error.getMessage()); } assertFalse(errorNotThrown); } public void testClassWhichIsAlwaysEqualButHasDifferentHashcodes() { ClassWhichIsAlwaysEqualButHasDifferentHashcodes orig =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 17 15:49:06 UTC 2023 - 4K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/SerializableTesterTest.java
boolean errorNotThrown = false; try { SerializableTester.reserializeAndAssert(orig); errorNotThrown = true; } catch (AssertionFailedError error) { // expected assertContains("must be Object#equals to", error.getMessage()); } assertFalse(errorNotThrown); } public void testClassWhichIsAlwaysEqualButHasDifferentHashcodes() { ClassWhichIsAlwaysEqualButHasDifferentHashcodes orig =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 17 15:49:06 UTC 2023 - 4K bytes - Viewed (0) -
.github/workflows/codeql-analysis.yml
# # You may wish to alter this file to override the set of languages analyzed, # or to provide custom queries or build logic. name: "CodeQL" on: push: branches: [master] pull_request: # The branches below must be a subset of the branches above branches: [master] schedule: - cron: '0 9 * * 3' jobs: analyze: name: Analyze runs-on: ubuntu-latest strategy: fail-fast: false
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Oct 02 13:22:07 UTC 2020 - 2.5K bytes - Viewed (0) -
CREDITS
meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 26 15:03:08 UTC 2024 - 1.6M bytes - Viewed (0) -
docs_src/custom_response/tutorial009c.py
from fastapi import FastAPI, Response app = FastAPI() class CustomORJSONResponse(Response): media_type = "application/json" def render(self, content: Any) -> bytes: assert orjson is not None, "orjson must be installed" return orjson.dumps(content, option=orjson.OPT_INDENT_2) @app.get("/", response_class=CustomORJSONResponse) async def main():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Sep 01 09:32:30 UTC 2022 - 451 bytes - Viewed (0) -
docs/en/docs/reference/testclient.md
# Test Client - `TestClient` You can use the `TestClient` class to test FastAPI applications without creating an actual HTTP and socket connection, just communicating directly with the FastAPI code. Read more about it in the [FastAPI docs for Testing](https://fastapi.tiangolo.com/tutorial/testing/). You can import it directly from `fastapi.testclient`: ```python from fastapi.testclient import TestClient ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 450 bytes - Viewed (0)