- Sort Score
- Num 10 results
- Language All
Results 801 - 810 of 1,184 for test3 (0.01 seconds)
-
internal/deadlineconn/deadlineconn_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package deadlineconn import ( "bufio" "fmt" "io" "net" "sync" "testing" "time" ) // Test deadlineconn handles read timeout properly by reading two messages beyond deadline. func TestBuffConnReadTimeout(t *testing.T) { l, err := net.Listen("tcp", "localhost:0") if err != nil {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Nov 11 17:15:17 GMT 2024 - 4.8K bytes - Click Count (0) -
tests/test_schema_compat_pydantic_v2.py
import pytest from fastapi import FastAPI from fastapi.testclient import TestClient from inline_snapshot import snapshot from pydantic import BaseModel from tests.utils import needs_py310 @pytest.fixture(name="client") def get_client(): from enum import Enum app = FastAPI() class PlatformRole(str, Enum): admin = "admin" user = "user" class OtherRole(str, Enum): ...
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 2.7K bytes - Click Count (0) -
tests/test_tutorial/test_additional_responses/test_tutorial004.py
import importlib import os import shutil import pytest from fastapi.testclient import TestClient from tests.utils import needs_py310 @pytest.fixture( name="client", params=[ pytest.param("tutorial004_py39"), pytest.param("tutorial004_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.additional_responses.{request.param}")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 4.9K bytes - Click Count (0) -
cmd/lock-rest-client_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "context" "testing" "github.com/minio/minio/internal/dsync" ) // Tests lock rpc client. func TestLockRESTlient(t *testing.T) { // These should not be connectable. endpoint, err := NewEndpoint("http://localhost:9876") if err != nil { t.Fatalf("unexpected error %v", err) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 2K bytes - Click Count (0) -
build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/ide/AndroidStudioSystemProperties.kt
val systemProperties = mutableListOf<String>() systemProperties.add(getStudioHome()) if (runAndroidStudioInHeadlessMode) { systemProperties.add("-Dstudio.tests.headless=true") } if (androidStudioJvmArgs.isNotEmpty()) { systemProperties.add("-DstudioJvmArgs=${androidStudioJvmArgs.joinToString(separator = ",")}") } return systemProperties
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Feb 20 09:51:32 GMT 2024 - 2.9K bytes - Click Count (0) -
build-logic-commons/publishing/src/main/kotlin/gradlebuild.publish-defaults.gradle.kts
this.onlyIf { !noUpload.map { it == "true" }.orElse(false).get() } if (name.endsWith("ToRemoteRepository")) { failEarlyIfUrlOrCredentialsAreNotSet(this) // packageBuild task executes tests, so we must run after it mustRunAfter(":packageBuild") } } @Suppress("ThrowsCount") fun Project.failEarlyIfUrlOrCredentialsAreNotSet(publish: Task) { gradle.taskGraph.whenReady {Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu Jul 17 16:12:44 GMT 2025 - 3.4K bytes - Click Count (0) -
build-logic/documentation/src/test/resources/org/gradle/test/Java8Interface.java
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.test; import java.io.IOException; import java.util.function.Supplier; /** * An interface that uses Java 8 source features. */ public interface Java8Interface extends CombinedInterface, JavaInterface {Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 1.1K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverResult.java
* * <p>A typical usage is to invoke this method for all dependencies having a * {@link DependencyScope#TEST TEST} or {@link DependencyScope#TEST_ONLY TEST_ONLY} * {@linkplain Dependency#getScope() scope}. An {@code --add-reads} option may need * to be generated for compiling and running the test classes that use such dependencies.</p> * * @param dependency path to the dependency for which to get the module nameCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Mar 05 14:29:21 GMT 2025 - 6.3K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t02/ProjectInheritanceTest.java
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.DisabledOnOs; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.condition.OS.WINDOWS; /** * A test which demonstrates maven's recursive inheritance where
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jun 04 10:35:11 GMT 2025 - 6.3K bytes - Click Count (0) -
docs/en/docs/advanced/testing-websockets.md
# Testing WebSockets { #testing-websockets } You can use the same `TestClient` to test WebSockets. For this, you use the `TestClient` in a `with` statement, connecting to the WebSocket: {* ../../docs_src/app_testing/tutorial002_py39.py hl[27:31] *} /// note For more details, check Starlette's documentation for <a href="https://www.starlette.dev/testclient/#testing-websocket-sessions" class="external-link" target="_blank">testing WebSockets</a>.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 459 bytes - Click Count (0)