Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 112 for perror (0.24 sec)

  1. cmd/server_test.go

    	response, err := s.client.Do(request)
    	c.Assert(err, nil)
    	c.Assert(response.StatusCode, http.StatusOK)
    
    	// constructing HTTP request to fetch a non-existent object.
    	// expected to fail, error response asserted for expected error values later.
    	objectName := "testObject"
    	request, err = newTestSignedRequest(http.MethodGet, getGetObjectURL(s.endPoint, bucketName, objectName),
    		0, nil, s.accessKey, s.secretKey, s.signer)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_pods_test.go

    			if tc.wantErr {
    				if err == nil {
    					t.Errorf("%s: expected error, got nil", tc.name)
    				}
    			} else {
    				if err != nil {
    					t.Errorf("%s: unexpected error: %v", tc.name, err)
    				}
    				if gotFirstID != tc.wantFirstID || gotRangeLen != tc.wantRangeLen {
    					t.Errorf("%s: got (%d, %d), want (%d, %d)", tc.name, gotFirstID, gotRangeLen, tc.wantFirstID, tc.wantRangeLen)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    </p>
    
    <h2 id="Errors">Errors</h2>
    
    <p>
    The predeclared type <code>error</code> is defined as
    </p>
    
    <pre>
    type error interface {
    	Error() string
    }
    </pre>
    
    <p>
    It is the conventional interface for representing an error condition,
    with the nil value representing no error.
    For instance, a function to read data from a file might be defined:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  4. src/reflect/all_test.go

    		if !ok {
    			t.Errorf("TrySend on empty chan failed")
    			select {
    			case x := <-c:
    				t.Errorf("TrySend failed but it did send %d", x)
    			default:
    			}
    		} else {
    			if i = <-c; i != 6 {
    				t.Errorf("TrySend 6, recv %d", i)
    			}
    		}
    
    		// Close
    		c <- 123
    		cv.Close()
    		if i, ok := cv.Recv(); i.Int() != 123 || !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  5. pkg/api/pod/util_test.go

    				t.Errorf("VisitContainers() = %+v, want %+v", gotContainers, tc.wantContainers)
    			}
    			for _, c := range tc.spec.Containers {
    				if c.SecurityContext != nil {
    					t.Errorf("VisitContainers() did not drop SecurityContext for container %q", c.Name)
    				}
    			}
    			for _, c := range tc.spec.InitContainers {
    				if c.SecurityContext != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  6. pkg/registry/batch/job/strategy_test.go

    				if diff := cmp.Diff(tc.wantErr, err.Error()); diff != "" {
    					t.Errorf("Unexpected errors (-want,+got):\n%s", diff)
    				}
    			} else {
    				gotLabels, _, err := GetAttrs(tc.job)
    				if err != nil {
    					t.Errorf("Error %s supposed to be nil", err.Error())
    				}
    				if diff := cmp.Diff(labels.Set(tc.job.ObjectMeta.Labels), gotLabels); diff != "" {
    					t.Errorf("Unexpected attrs (-want,+got):\n%s", diff)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 101.5K bytes
    - Viewed (0)
  7. pkg/config/validation/validation_test.go

    			err := validateTelemetryFilter(tc.filter)
    			errFound := err != nil
    			if tc.valid && errFound {
    				t.Errorf("validateTelemetryFilter(%v) produced unexpected error: %v", tc.filter, err)
    			}
    			if !tc.valid && !errFound {
    				t.Errorf("validateTelemetryFilter(%v) did not produce expected error", tc.filter)
    			}
    		})
    	}
    }
    
    func TestValidateWasmPlugin(t *testing.T) {
    	tests := []struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

    constexpr size_t kFbAlignment = 16;
    
    // Set `isSigned` to false if the `type` is an 8-bit unsigned integer type.
    // Since tflite doesn't support unsigned for other types, returns error if
    // `isSigned` is set to false for other types.
    static StatusOr<tflite::TensorType> GetTFLiteType(Type type,
                                                      bool is_signed = true) {
      if (!is_signed) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/data.go

    				continue
    			}
    			return fmt.Errorf("dynamic relocation to unreachable symbol %s",
    				ctxt.loader.SymName(targ))
    		}
    		tgot := ctxt.loader.SymGot(targ)
    		if tgot == loadpe.RedirectToDynImportGotToken {
    
    			// Consistency check: name should be __imp_X
    			sname := ctxt.loader.SymName(targ)
    			if !strings.HasPrefix(sname, "__imp_") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (1)
  10. src/main/java/org/codelibs/fess/mylasta/action/FessLabels.java

        /** The key of the message: Error Count */
        public static final String LABELS_ERROR_COUNT = "{labels.errorCount}";
    
        /** The key of the message: Error Log */
        public static final String LABELS_ERROR_LOG = "{labels.errorLog}";
    
        /** The key of the message: Error Name */
        public static final String LABELS_ERROR_NAME = "{labels.errorName}";
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Mar 22 11:58:34 UTC 2024
    - 146.4K bytes
    - Viewed (0)
Back to top