- Sort Score
- Num 10 results
- Language All
Results 881 - 890 of 1,774 for hero (0.02 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpDateTest.kt
assertThat("Thu, 01 Jan 1970 00:00 GMT".toHttpDateOrNull()).isNull() // Extra spaces treated as bad. assertThat("Thu, 01 Jan 1970 00:00 GMT".toHttpDateOrNull()).isNull() // Missing leading zero treated as bad. assertThat("Thu, 1 Jan 1970 00:00 GMT".toHttpDateOrNull()).isNull() // RFC 850, obsoleted by RFC 1036 with any TZ. assertThat("Thursday, 01-Jan-1970 00:00:00 GMT-01:00".toHttpDateOrNull()!!.time)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 3.9K bytes - Click Count (0) -
src/test/java/jcifs/SmbFileHandleTest.java
verify(smbFileHandle, times(1)).getInitialSize(); } /** * Test getInitialSize() when the size is zero. */ @Test void testGetInitialSize_zero() { long expectedSize = 0L; when(smbFileHandle.getInitialSize()).thenReturn(expectedSize); long actualSize = smbFileHandle.getInitialSize();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.1K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CheckTest.java
// This test verifies that Check inherits the model version logic from AbstractUpgradeGoal // The actual logic is tested in AbstractUpgradeGoalTest // Here we just verify that Check is properly configured as a subclass assertTrue(checkGoal instanceof AbstractUpgradeGoal, "Check should extend AbstractUpgradeGoal");Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Jun 07 06:22:47 GMT 2025 - 4.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
SmbTreeConnection c = newConn(); assertSame(config, c.getConfig()); } @Test @DisplayName("acquire calls tree.acquire on first usage, release calls tree.release at zero") void acquire_release_lifecycle() { SmbTreeConnection c = newConn(); SmbTreeImpl tree = mock(SmbTreeImpl.class); when(tree.acquire(false)).thenReturn(tree);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 13K bytes - Click Count (0) -
docs/en/docs/tutorial/handling-errors.md
And you want to handle this exception globally with FastAPI. You could add a custom exception handler with `@app.exception_handler()`: {* ../../docs_src/handling_errors/tutorial003_py310.py hl[5:7,13:18,24] *} Here, if you request `/unicorns/yolo`, the *path operation* will `raise` a `UnicornException`. But it will be handled by the `unicorn_exception_handler`.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 8.9K bytes - Click Count (0) -
android/guava/src/com/google/common/base/NullnessCasts.java
* analysis that that means "plain {@code T}" rather than the inferred type {@code @Nullable T}. * (And even if annotations on local variables were permitted as an optional hint, no annotation * would be the right tool for the job here: {@code @Nullable} is the annotation that we're trying * to get rid of, and {@code @NonNull} would be wrong for our use case for the same reason as
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 13 20:49:47 GMT 2025 - 3.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MultimapBuilderTest.java
builderWithKeys.treeSetValues(), builderWithKeys.enumSetValues(RoundingMode.class))) { /* * Temporarily inlining SerializableTester here for obscure internal reasons. */ reserializeAndAssert(builder.build()); } } } @GwtIncompatible @J2ktIncompatible
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.2K bytes - Click Count (0) -
guava/src/com/google/common/base/NullnessCasts.java
* analysis that that means "plain {@code T}" rather than the inferred type {@code @Nullable T}. * (And even if annotations on local variables were permitted as an optional hint, no annotation * would be the right tool for the job here: {@code @Nullable} is the annotation that we're trying * to get rid of, and {@code @NonNull} would be wrong for our use case for the same reason as
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 13 20:49:47 GMT 2025 - 3.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/NtStatusTest.java
// Given int successStatus = NtStatus.NT_STATUS_SUCCESS; // When/Then assertEquals(0x00000000, successStatus); // Success status should be zero assertTrue(successStatus == 0); } @Test @DisplayName("Should identify error status codes") void testErrorStatusIdentification() { // Given int[] errorStatuses =Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.6K bytes - Click Count (0) -
docs/es/docs/advanced/templates.md
También podrías usar `from starlette.templating import Jinja2Templates`. **FastAPI** proporciona el mismo `starlette.templating` como `fastapi.templating`, solo como una conveniencia para ti, el desarrollador. Pero la mayoría de los responses disponibles vienen directamente de Starlette. Lo mismo con `Request` y `StaticFiles`. /// ## Escribiendo plantillas { #writing-templates }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 3.6K bytes - Click Count (0)