Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 695 for test_1 (0.18 sec)

  1. test/fixedbugs/issue18595.go

    }
    type J interface {
    	M()
    }
    
    type T struct{}
    
    func (*T) M() {}
    
    func main() {
    	test1()
    	test2()
    }
    
    func test1() {
    	t := new(T)
    	var i1, i2 I
    	var j interface {
    		M()
    	}
    	i1 = t
    	j = t
    	i2 = j
    	if i1 != i2 {
    		panic("interfaces not equal")
    	}
    }
    
    func test2() {
    	t := new(T)
    	i1 := (I)(t)
    	i2 := (I)((interface {
    		M()
    	})((J)(t)))
    	if i1 != i2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 20:00:05 UTC 2017
    - 867 bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/maven/MavenScopesIntegrationTest.groovy

            def notRequired = mavenRepo.module('test', 'dont-include-me', '1.0')
            def m1 = mavenRepo.module('test', 'test1', '1.0').publish()
            def m2 = mavenRepo.module('test', 'test2', '1.0').publish()
            def m3 = mavenRepo.module('test', 'test3', '1.0').publish()
            def m4 = mavenRepo.module('test', 'test4', '1.0').publish()
            def m5 = mavenRepo.module('test', 'test5', '1.0')
                .dependsOn(m1, scope: 'compile')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 14.4K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/compiler/mlir/quantization/stablehlo/cc/report_test.cc

    using ::tsl::testing::IsOk;
    
    using QuantizationReportTest = ::mlir::quant::QuantizationTestBase;
    
    TEST_F(QuantizationReportTest, GetQuantizationResultsReturnsEmptyResults) {
      QuantizationReport report{};
    
      const QuantizationResults& results = report.GetQuantizationResults();
      ASSERT_THAT(results.results(), IsEmpty());
    }
    
    TEST_F(QuantizationReportTest, AddQuantizationResult) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 10:10:34 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  5. tensorflow/cc/saved_model/experimental/tests/saved_model_api_test.cc

    }
    
    // This value parameterized test allows us to test both TFRT
    // and non TFRT runtimes.
    // https://github.com/google/googletest/blob/dcc92d0ab6c4ce022162a23566d44f673251eee4/googletest/docs/advanced.md#value-parameterized-tests
    class CPPSavedModelAPITest : public ::testing::TestWithParam<bool> {};
    
    TEST_P(CPPSavedModelAPITest, LoadsSavedModelWithTags) {
      Status status;
      RuntimeBuilder builder;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jul 14 23:59:14 UTC 2020
    - 3.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/resource/helper_test.go

    		}
    		return true
    	}
    
    	tests := []struct {
    		name    string
    		Resp    *http.Response
    		HttpErr error
    		Modify  bool
    		Object  runtime.Object
    
    		ExpectObject runtime.Object
    		Err          bool
    		Req          func(*http.Request) bool
    	}{
    		{
    			name:    "test1",
    			HttpErr: errors.New("failure"),
    			Err:     true,
    		},
    		{
    			name: "test1",
    			Resp: &http.Response{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph_test.cc

      EXPECT_EQ(histogram.num(), 1);
      EXPECT_EQ(compilation_status.Delta("kOldBridgeNoMlirSuccess"), 1);
    }
    
    TEST_F(CompileTFGraphTest, SuccessfullyCompilesWithManualSharding) {
      // MLIR module from failing test.
      constexpr char kSupportedManualSharding[] = R"(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:08:57 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. pkg/controller/daemon/util/daemonset_util_test.go

    			hash,
    			false,
    		},
    	}
    	for _, test := range tests {
    		updated := IsPodUpdated(test.pod, test.hash, test.templateGeneration)
    		if updated != test.isUpdated {
    			t.Errorf("%s: IsPodUpdated returned wrong value. Expected %t, got %t", test.test, test.isUpdated, updated)
    		}
    	}
    }
    
    func TestCreatePodTemplate(t *testing.T) {
    	tests := []struct {
    		templateGeneration *int64
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/FilteredConfigurationIntegrationTest.groovy

            outputContains("external-dependencies: [test1-1.0.jar]")
            outputContains("child1-dependencies: [child1.jar, child1-lib.jar, test2-1.0.jar]")
        }
    
        @ToBeFixedForConfigurationCache(because = "task uses Configuration API")
        def "can query files for filtered first level dependencies when there is a cycle in the dependency graph"() {
            mavenRepo.module("group", "test1", "1.0").publish()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 20:27:07 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. test/recover2.go

    // license that can be found in the LICENSE file.
    
    // Test of recover for run-time errors.
    
    // TODO(rsc):
    //	null pointer accesses
    
    package main
    
    import "strings"
    
    var x = make([]byte, 10)
    
    func main() {
    	test1()
    	test2()
    	test3()
    	test4()
    	test5()
    	test6()
    	test7()
    }
    
    func mustRecover(s string) {
    	v := recover()
    	if v == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 03 20:41:29 UTC 2019
    - 1.2K bytes
    - Viewed (0)
Back to top