Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 76 for testfunc (0.16 sec)

  1. pkg/kubelet/preemption/preemption_test.go

    			}}))
    	}
    }
    
    func TestGetPodsToPreempt(t *testing.T) {
    	type testRun struct {
    		testName              string
    		preemptor             *v1.Pod
    		inputPods             []*v1.Pod
    		insufficientResources admissionRequirementList
    		expectErr             bool
    		expectedOutput        []*v1.Pod
    	}
    	allPods := getTestPods()
    	runs := []testRun{
    		{
    			testName:              "no requirements",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jul 24 10:04:08 UTC 2022
    - 19.2K 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. src/compress/flate/deflate_test.go

    		t.Logf("#%d: write %d-%d", i, lo, hi)
    		if _, err := w.Write(input[lo:hi]); err != nil {
    			t.Errorf("testSync: write: %v", err)
    			return
    		}
    		if i == 0 {
    			if err := w.Flush(); err != nil {
    				t.Errorf("testSync: flush: %v", err)
    				return
    			}
    		} else {
    			if err := w.Close(); err != nil {
    				t.Errorf("testSync: close: %v", err)
    			}
    		}
    		buf.ReadMode()
    		out := make([]byte, hi-lo+1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  5. 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)
  6. src/math/big/arith_test.go

    		testFunVV(t, "addVV_g", addVV_g, arg)
    		testFunVV(t, "addVV", addVV, arg)
    
    		arg = argVV{a.z, a.y, a.x, a.c}
    		testFunVV(t, "addVV_g symmetric", addVV_g, arg)
    		testFunVV(t, "addVV symmetric", addVV, arg)
    
    		arg = argVV{a.x, a.z, a.y, a.c}
    		testFunVV(t, "subVV_g", subVV_g, arg)
    		testFunVV(t, "subVV", subVV, arg)
    
    		arg = argVV{a.y, a.z, a.x, a.c}
    		testFunVV(t, "subVV_g symmetric", subVV_g, arg)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 02 14:43:52 UTC 2022
    - 19.9K bytes
    - Viewed (0)
  7. src/math/big/nat_test.go

    		}
    	}
    }
    
    func testFunNN(t *testing.T, msg string, f funNN, a argNN) {
    	z := f(nil, a.x, a.y)
    	if z.cmp(a.z) != 0 {
    		t.Errorf("%s%+v\n\tgot z = %v; want %v", msg, a, z, a.z)
    	}
    }
    
    func TestFunNN(t *testing.T) {
    	for _, a := range sumNN {
    		arg := a
    		testFunNN(t, "add", nat.add, arg)
    
    		arg = argNN{a.z, a.y, a.x}
    		testFunNN(t, "add symmetric", nat.add, arg)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 09 15:29:36 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  8. src/sort/example_multi_test.go

    type Change struct {
    	user     string
    	language string
    	lines    int
    }
    
    type lessFunc func(p1, p2 *Change) bool
    
    // multiSorter implements the Sort interface, sorting the changes within.
    type multiSorter struct {
    	changes []Change
    	less    []lessFunc
    }
    
    // Sort sorts the argument slice according to the less functions passed to OrderedBy.
    func (ms *multiSorter) Sort(changes []Change) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 13 20:16:24 UTC 2022
    - 4K bytes
    - Viewed (0)
  9. 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)
  10. pkg/log/scope_test.go

    	if z1 != z2 {
    		t.Error("Expecting the same scope objects, got different ones")
    	}
    }
    
    func TestFind(t *testing.T) {
    	if z := FindScope("TestFind"); z != nil {
    		t.Error("Found scope, but expected it wouldn't exist")
    	}
    
    	_ = RegisterScope("TestFind", "")
    
    	if z := FindScope("TestFind"); z == nil {
    		t.Error("Did not find scope, expected to find it")
    	}
    }
    
    func TestBadNames(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 17:36:09 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top