Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for checkError (0.15 sec)

  1. pkg/api/service/util_test.go

    		_, err = GetLoadBalancerSourceRanges(&svc)
    		if err == nil {
    			t.Errorf("Expected error parsing: %q", v)
    		}
    	}
    	checkError("10.0.0.1/33")
    	checkError("foo.bar")
    	checkError("10.0.0.1/32,*")
    	checkError("10.0.0.1/32,")
    	checkError("10.0.0.1/32, ")
    	checkError("10.0.0.1")
    
    	checkOK := func(v string) utilnet.IPNetSet {
    		t.Helper()
    		annotations := make(map[string]string)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 01 15:18:45 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  2. plugin/pkg/admission/storage/persistentvolume/resize/admission_test.go

    	}
    	tests := []struct {
    		name        string
    		resource    schema.GroupVersionResource
    		subresource string
    		oldObj      runtime.Object
    		newObj      runtime.Object
    
    		checkError func(error) bool
    	}{
    		{
    			name:     "pvc-resize, update, no error",
    			resource: api.SchemeGroupVersion.WithResource("persistentvolumeclaims"),
    			oldObj: &api.PersistentVolumeClaim{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  3. pkg/api/v1/service/util_test.go

    		_, err = GetLoadBalancerSourceRanges(&svc)
    		if err == nil {
    			t.Errorf("Expected error parsing: %q", v)
    		}
    	}
    	checkError("10.0.0.1/33")
    	checkError("foo.bar")
    	checkError("10.0.0.1/32,*")
    	checkError("10.0.0.1/32,")
    	checkError("10.0.0.1/32, ")
    	checkError("10.0.0.1")
    
    	checkOK := func(v string) utilnet.IPNetSet {
    		t.Helper()
    		annotations := make(map[string]string)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 01 15:18:45 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/io/src/main/java/org/gradle/internal/io/LinePerThreadBufferingOutputStream.java

        @Override
        public PrintStream append(CharSequence csq, int start, int end) {
            getStream().append(csq, start, end);
            return this;
        }
    
        @Override
        public boolean checkError() {
            return getStream().checkError();
        }
    
        @Override
        public void close() {
            PrintStream currentStream = maybeGetStream();
            if (currentStream != null) {
                stream.remove();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:14 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. src/testing/quick/quick_test.go

    }
    
    func TestFailure(t *testing.T) {
    	f := func(x int) bool { return false }
    	err := Check(f, nil)
    	if err == nil {
    		t.Errorf("Check didn't return an error")
    	}
    	if _, ok := err.(*CheckError); !ok {
    		t.Errorf("Error was not a CheckError: %s", err)
    	}
    
    	err = CheckEqual(fUint, fUint32, nil)
    	if err == nil {
    		t.Errorf("#1 CheckEqual didn't return an error")
    	}
    	if _, ok := err.(SetupError); !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/httpresponse/httpresponse.go

    		if len(stmts) < 2 {
    			// The call to the http function is the last statement of the block.
    			return true
    		}
    
    		// Skip cases in which the call is wrapped by another (#52661).
    		// Example:  resp, err := checkError(http.Get(url))
    		if ncalls > 1 {
    			return true
    		}
    
    		asg, ok := stmts[0].(*ast.AssignStmt)
    		if !ok {
    			return true // the first statement is not assignment.
    		}
    
    		resp := rootIdent(asg.Lhs[0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. src/go/parser/error_test.go

    	if len(expected) > 0 {
    		t.Errorf("%d errors not reported:", len(expected))
    		for pos, msg := range expected {
    			t.Errorf("%s: %s\n", fset.Position(pos), msg)
    		}
    	}
    }
    
    func checkErrors(t *testing.T, filename string, input any, mode Mode, expectErrors bool) {
    	t.Helper()
    	src, err := readSource(filename, input)
    	if err != nil {
    		t.Error(err)
    		return
    	}
    
    	fset := token.NewFileSet()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 19:47:49 UTC 2022
    - 5.9K bytes
    - Viewed (0)
Back to top