Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for test32 (0.18 sec)

  1. tests/test_annotated.py

    def test_multiple_path():
        app = FastAPI()
    
        @app.get("/test1")
        @app.get("/test2")
        async def test(var: Annotated[str, Query()] = "bar"):
            return {"foo": var}
    
        client = TestClient(app)
        response = client.get("/test1")
        assert response.status_code == 200
        assert response.json() == {"foo": "bar"}
    
        response = client.get("/test1", params={"var": "baz"})
        assert response.status_code == 200
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. pilot/pkg/trustbundle/trustbundle_test.go

    	"os"
    	"path"
    	"sort"
    	"testing"
    	"time"
    
    	meshconfig "istio.io/api/mesh/v1alpha1"
    	"istio.io/istio/pkg/config/mesh"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/env"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    func readCertFromFile(filename string) string {
    	csrBytes, err := os.ReadFile(filename)
    	if err != nil {
    		return ""
    	}
    	return string(csrBytes)
    }
    
    var (
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r70/TestDisplayNameJUnit5CrossVersionSpec.groovy

                                        operationDisplayName "[2] bar"
                                        testDisplayName "[2] bar"
                                    }
                                }
                                testMethodSuite("test2(String)") {
                                    operationDisplayName "2nd test"
                                    testDisplayName "2nd test"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  4. src/testing/fstest/testfs.go

    // The contents of fsys must not change concurrently with TestFS.
    //
    // If TestFS finds any misbehaviors, it returns either the first error or a
    // list of errors. Use [errors.Is] or [errors.As] to inspect.
    //
    // Typical usage inside a test is:
    //
    //	if err := fstest.TestFS(myFS, "file/that/should/be/present"); err != nil {
    //		t.Fatal(err)
    //	}
    func TestFS(fsys fs.FS, expected ...string) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-provider/src/integTest/groovy/org/gradle/internal/declarativedsl/settings/SoftwareTypeDeclarationIntegrationTest.groovy

                    foo = "test2"
    
                    bar {
                        baz = "fizz"
                    }
                }
            """
    
            when:
            run(":printTestSoftwareTypeExtensionConfiguration", ":printAnotherSoftwareTypeExtensionConfiguration")
    
            then:
            assertThatDeclaredValuesAreSetProperly()
            outputContains("""foo = test2\nbaz = fizz""")
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 19 16:59:01 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go

    			ok = false
    		}
    	}
    	return ok
    }
    
    func isTestingType(typ types.Type, testingType string) bool {
    	// No Unalias here: I doubt "go test" recognizes
    	// "type A = *testing.T; func Test(A) {}" as a test.
    	ptr, ok := typ.(*types.Pointer)
    	if !ok {
    		return false
    	}
    	return analysisutil.IsNamedType(ptr.Elem(), "testing", testingType)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ConcurrentArchiveIntegrationTest.groovy

    import org.gradle.integtests.fixtures.ToBeFixedForConfigurationCache
    import org.gradle.integtests.fixtures.ToBeFixedForIsolatedProjects
    import org.gradle.test.fixtures.file.TestFile
    import org.gradle.test.fixtures.server.http.BlockingHttpServer
    import org.gradle.test.precondition.Requires
    import org.gradle.test.preconditions.IntegTestPreconditions
    import org.junit.Rule
    import spock.lang.Issue
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/test.go

    // issue 8092
    
    func test8092(t *testing.T) {
    	tests := []struct {
    		s    string
    		a, b *C.char
    	}{
    		{"text", &C.text[0], C.ctext()},
    		{"data", &C.data[0], C.cdata()},
    	}
    	for _, test := range tests {
    		if test.a != test.b {
    			t.Errorf("%s: pointer mismatch: %v != %v", test.s, test.a, test.b)
    		}
    		if got := C.GoString(test.a); got != test.s {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  9. cmd/perf-tests.go

    Aditya Manthramurthy <******@****.***> 1716591923 -0700
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. pkg/test/framework/test.go

    	// RequiresSingleNetwork ensures that clusters are in the same network
    	//
    	// Deprecated: Tests should not make assumptions regarding number of networks.
    	RequiresSingleNetwork() Test
    	// TopLevel marks a test as a "top-level test" meaning a container test that has many subtests.
    	// Resources created at this level will be in-scope for dumping when any descendant test fails.
    	TopLevel() Test
    	// Run the test, supplied as a lambda.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top