Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for TestCall (0.76 sec)

  1. pkg/controller/volume/persistentvolume/framework_test.go

    //   - configures controller with recycler or deleter which will return provided
    //     errors when a volume is deleted or recycled
    //   - calls given testCall
    func wrapTestWithReclaimCalls(operation operationType, expectedOperationCalls []error, toWrap testCall) testCall {
    	if operation == operationDelete {
    		return wrapTestWithPluginCalls(nil, expectedOperationCalls, nil, toWrap)
    	} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 09:54:00 UTC 2023
    - 38.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/swig/testdata/callback/main.go

    	default:
    		fatal("unknown test %q", os.Args[1])
    	case "Call":
    		testCall()
    	case "Callback":
    		testCallback()
    	}
    	println("OK")
    }
    
    func fatal(f string, args ...any) {
    	fmt.Fprintln(os.Stderr, fmt.Sprintf(f, args...))
    	os.Exit(1)
    }
    
    type GoCallback struct{}
    
    func (p *GoCallback) Run() string {
    	return "GoCallback.Run"
    }
    
    func testCall() {
    	c := NewCaller()
    	cb := NewCallback()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:07 UTC 2023
    - 1K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/swig/swig_test.go

    	"path/filepath"
    	"regexp"
    	"strconv"
    	"strings"
    	"sync"
    	"testing"
    )
    
    func TestStdio(t *testing.T) {
    	testenv.MustHaveCGO(t)
    	mustHaveSwig(t)
    	run(t, "testdata/stdio", false)
    }
    
    func TestCall(t *testing.T) {
    	testenv.MustHaveCGO(t)
    	mustHaveSwig(t)
    	mustHaveCxx(t)
    	run(t, "testdata/callback", false, "Call")
    	t.Run("lto", func(t *testing.T) { run(t, "testdata/callback", true, "Call") })
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:38:14 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. tensorflow/cc/experimental/libtf/tests/object_test.cc

      return TaggedValue(args[0].i64() + args[1].i64());
    }
    
    TEST(ObjectTest, TestCast) {
      Integer i(3);
      auto result = Cast<String>(i);
      ASSERT_TRUE(!result.ok());
    }
    
    TEST(ObjectTest, TestCall) {
      TaggedValue add_func(AddIntegers);
      Callable add(add_func);
      TF_ASSERT_OK_AND_ASSIGN(Integer i,
                              add.Call<Integer>(Integer(1), Integer(10)));
      EXPECT_EQ(i.get(), 11);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 28 21:37:07 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  5. pkg/controller/volume/persistentvolume/delete_test.go

    }
    
    // Test multiple calls to syncClaim/syncVolume and periodic sync of all
    // volume/claims. The test follows this pattern:
    //  0. Load the controller with initial data.
    //  1. Call controllerTest.testCall() once as in TestSync()
    //  2. For all volumes/claims changed by previous syncVolume/syncClaim calls,
    //     call appropriate syncVolume/syncClaim (simulating "volume/claim changed"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. pkg/controller/volume/persistentvolume/recycle_test.go

    }
    
    // Test multiple calls to syncClaim/syncVolume and periodic sync of all
    // volume/claims. The test follows this pattern:
    //  0. Load the controller with initial data.
    //  1. Call controllerTest.testCall() once as in TestSync()
    //  2. For all volumes/claims changed by previous syncVolume/syncClaim calls,
    //     call appropriate syncVolume/syncClaim (simulating "volume/claim changed"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  7. src/syscall/js/js_test.go

    	if got := dummys.Get("someArray").Index(2).Int(); got != 99 {
    		t.Errorf("got %#v, want %#v", got, 99)
    	}
    
    	expectValueError(t, func() {
    		dummys.Get("zero").SetIndex(2, 99)
    	})
    }
    
    func TestCall(t *testing.T) {
    	var i int64 = 40
    	if got := dummys.Call("add", i, 2).Int(); got != 42 {
    		t.Errorf("got %#v, want %#v", got, 42)
    	}
    	if got := dummys.Call("add", js.Global().Call("eval", "40"), 2).Int(); got != 42 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  8. pkg/controller/volume/persistentvolume/binder_test.go

    	"k8s.io/klog/v2/ktesting"
    )
    
    // Test single call to syncClaim and syncVolume methods.
    //  1. Fill in the controller with initial data
    //  2. Call the tested function (syncClaim/syncVolume) via
    //     controllerTest.testCall *once*.
    //  3. Compare resulting volumes and claims with expected volumes and claims.
    func TestSync(t *testing.T) {
    	labels := map[string]string{
    		"foo": "true",
    		"bar": "false",
    	}
    
    	tests := []controllerTest{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 65.8K bytes
    - Viewed (0)
  9. pkg/controller/volume/persistentvolume/provision_test.go

    }
    
    // Test multiple calls to syncClaim/syncVolume and periodic sync of all
    // volume/claims. The test follows this pattern:
    //  0. Load the controller with initial data.
    //  1. Call controllerTest.testCall() once as in TestSync()
    //  2. For all volumes/claims changed by previous syncVolume/syncClaim calls,
    //     call appropriate syncVolume/syncClaim (simulating "volume/claim changed"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  10. tests/testdata/config/destination-rule-all.yaml

    kind: ServiceEntry
    metadata:
      name: destall
      namespace: testns
    spec:
       hosts:
       - destall.default.svc.cluster.local
       ports:
       - number: 81
         name: http
         protocol: HTTP
       resolution: STATIC
       endpoints:
        - address: 127.0.0.2
          ports:
            http: 7072
    ---
    apiVersion: networking.istio.io/v1alpha3
    kind: DestinationRule
    metadata:
      name: destall
      namespace: testns
    spec:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 26 15:06:45 UTC 2020
    - 1.3K bytes
    - Viewed (0)
Back to top