Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 71 for testfunc (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  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. 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)
  7. pkg/controller/daemon/util/daemonset_util_test.go

    				featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, fg, f)
    				t.Run(fmt.Sprintf("%v (%t)", fg, f), tf)
    			}()
    		}
    	}
    }
    
    func TestGetTargetNodeName(t *testing.T) {
    	testFun := func(t *testing.T) {
    		tests := []struct {
    			pod         *v1.Pod
    			nodeName    string
    			expectedErr bool
    		}{
    			{
    				pod: &v1.Pod{
    					ObjectMeta: metav1.ObjectMeta{
    						Name:      "pod1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/cli-runtime/pkg/resource/helper_test.go

    		name        string
    		initialOpts *metav1.ListOptions
    		tokensSeen  []string
    		listFunc    func(metav1.ListOptions) (runtime.Object, error)
    
    		expectedTokens []string
    		wantErr        string
    	}{
    		{
    			name:        "updates list options with continue token until list finished",
    			initialOpts: &metav1.ListOptions{},
    			listFunc: func(options metav1.ListOptions) (runtime.Object, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  9. src/internal/abi/abi_test.go

    // license that can be found in the LICENSE file.
    
    package abi_test
    
    import (
    	"internal/abi"
    	"internal/testenv"
    	"path/filepath"
    	"strings"
    	"testing"
    )
    
    func TestFuncPC(t *testing.T) {
    	// Test that FuncPC* can get correct function PC.
    	pcFromAsm := abi.FuncPCTestFnAddr
    
    	// Test FuncPC for locally defined function
    	pcFromGo := abi.FuncPCTest()
    	if pcFromGo != pcFromAsm {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 18:31:05 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  10. src/crypto/cipher/fuzz_test.go

    	{
    		"CBC-AES128",
    		commonKey128,
    	},
    	{
    		"CBC-AES192",
    		commonKey192,
    	},
    	{
    		"CBC-AES256",
    		commonKey256,
    	},
    }
    
    var timeout *time.Timer
    
    const datalen = 1024
    
    func TestFuzz(t *testing.T) {
    
    	for _, ft := range cbcAESFuzzTests {
    		c, _ := aes.NewCipher(ft.key)
    
    		cbcAsm := cipher.NewCBCEncrypter(c, commonIV)
    		cbcGeneric := cipher.NewCBCGenericEncrypter(c, commonIV)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 03 13:39:12 UTC 2022
    - 2K bytes
    - Viewed (0)
Back to top