Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for test_func (0.4 sec)

  1. cluster/addons/addon-manager/kube-addons-test.sh

        return 1
      fi
    }
    
    function test_func() {
      local -r name="${1}"
    
      echo_blue "=== TEST ${name}"
      setup
      if ! "${name}"; then
        failures=$((failures+1))
        error "=== FAIL"
      else
        echo_green "=== PASS"
      fi
      teardown
    }
    
    failures=0
    test_func test_create_resource_reconcile
    test_func test_create_resource_ensureexists
    test_func test_create_multiresource
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 25 02:46:18 UTC 2021
    - 9.3K bytes
    - Viewed (0)
  2. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cpp/plugins/CppUnitTestWithLibraryIntegrationTest.groovy

                    return lib();
                }
            """
        }
    
        @Override
        protected void changeTestImplementation() {
            file("src/test/cpp/test_lib.cpp") << """
                void test_func() { }
            """
        }
    
        @Override
        protected void assertTestCasesRan() {
            // ok
        }
    
        @Override
        protected String[] getTasksToCompileComponentUnderTest(String architecture) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cpp/plugins/CppUnitTestWithoutComponentIntegrationTest.groovy

                    return test();
                }
            """
        }
    
        @Override
        protected void changeTestImplementation() {
            file("src/test/cpp/test.cpp") << """
                void test_func() { }
            """
        }
    
        @Override
        protected void assertTestCasesRan() {
            // Ok
        }
    
        @ToBeFixedForConfigurationCache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cpp/plugins/CppUnitTestWithApplicationIntegrationTest.groovy

                    return app();
                }
            """
        }
    
        @Override
        protected void changeTestImplementation() {
            file("src/test/cpp/test_app.cpp") << """
                void test_func() { }
            """
        }
    
        @Override
        protected void assertTestCasesRan() {
            // Ok
        }
    
        @Override
        protected String getComponentUnderTestDsl() {
            return "application"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/aot/tests/make_test_graphs.py

      math_ops.add(x, y, name='x_y_sum')
    
    
    def tffunction(_):
    
      @function.Defun(dtypes.int32, dtypes.int32)
      def test_func(a, b):
        return a + b
    
      x = constant_op.constant([1], name='x_const')
      y = constant_op.constant([2], name='y_const')
      test_func(x, y, name='func_call')  # pylint: disable=unexpected-keyword-arg
    
    
    def tfsplits(_):
      """A more complex graph, including splits."""
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 15 15:25:23 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  6. test/range4.go

    	}
    	if ncalls != 3 {
    		println("wrong number of calls:", ncalls, "!= 3")
    		panic("fail")
    	}
    }
    
    func main() {
    	testfunc0()
    	testfunc1()
    	testfunc2()
    	testfunc3()
    	testfunc4()
    	testfunc5()
    	testfunc6()
    	testfunc7()
    	testfunc8()
    	testfunc9()
    	testcalls()
    	testcalls1()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 16:00:53 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. test/fixedbugs/issue15329.go

    	// Invocation via interface.
    	check(unsafe.Pointer(testInter(1).Pointer()), unsafe.Pointer(testInter(2).Pointer()))
    
    	// Invocation via method value.
    	check(unsafe.Pointer(testFunc(1)()), unsafe.Pointer(testFunc(2)()))
    }
    
    func check(p, q unsafe.Pointer) {
    	a, b := *(*int)(p), *(*int)(q)
    	if a != 1 || b != 2 {
    		fmt.Printf("got %v, %v; expected 1, 2\n", a, b)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 18 14:01:22 UTC 2016
    - 2.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/testdata/closure_test.go

    	a := 0
    	b := func() {
    		switch {
    		}
    		a++
    	}
    	b()
    	b()
    	return a
    }
    
    func testCFunc(t *testing.T) {
    	if want, got := 2, testCFunc_ssa(); got != want {
    		t.Errorf("expected %d, got %d", want, got)
    	}
    }
    
    // TestClosure tests closure related behavior.
    func TestClosure(t *testing.T) {
    	testCFunc(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 572 bytes
    - Viewed (0)
  9. pkg/volume/util/resize_util_test.go

    		expectedPVC *v1.PersistentVolumeClaim
    		testFunc    func(*v1.PersistentVolumeClaim, clientset.Interface, resource.Quantity) (*v1.PersistentVolumeClaim, error)
    	}{
    		{
    			name:        "mark fs resize, with no other conditions",
    			pvc:         basePVC.get(),
    			expectedPVC: basePVC.withStorageResourceStatus(v1.PersistentVolumeClaimNodeResizePending).get(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/device_compilation_profiler_test.cc

    TEST(DeviceCompilationProfilerTest, RegisterExecution) {
      DeviceCompilationProfiler* profiler = new DeviceCompilationProfiler();
      core::ScopedUnref profiler_ref(profiler);
    
      NameAttrList function;
      function.set_name("TestFunc");
    
      for (int i = 0; i < 5; ++i) {
        profiler->RegisterExecution(function);
      }
      TF_ASSERT_OK_AND_ASSIGN(auto stats, profiler->GetCompileStats(function));
      EXPECT_EQ(stats.execution_count, 5);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Dec 22 21:06:33 UTC 2022
    - 8.7K bytes
    - Viewed (0)
Back to top