Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for expectPanic (0.13 sec)

  1. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_conversion_test.go

    	scheme, _ := test.TestScheme()
    	testCases := []struct {
    		name                    string
    		unstructuredToConvert   *unstructured.Unstructured
    		convertingObject        runtime.Object
    		expectPanic             bool
    		expectedErrFunc         func(err error) bool
    		expectedConvertedObject runtime.Object
    	}{
    		{
    			name: "convert empty unstructured w/o gvk to versioned object should fail",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 07 15:19:26 UTC 2020
    - 16.4K bytes
    - Viewed (0)
  2. src/syscall/js/js_test.go

    		t.Errorf("got %#v, want %#v", got, 42)
    	}
    	if got := dummys.Call("add", js.Global().Call("eval", "40"), 2).Int(); got != 42 {
    		t.Errorf("got %#v, want %#v", got, 42)
    	}
    
    	expectPanic(t, func() {
    		dummys.Call("zero")
    	})
    	expectValueError(t, func() {
    		dummys.Get("zero").Call("badMethod")
    	})
    }
    
    func TestInvoke(t *testing.T) {
    	var i int64 = 40
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
Back to top