Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,464 for perror (0.11 sec)

  1. tests/associations_has_many_test.go

    	}
    
    	if count := tx.Model(&item).Association("Contents").Count(); count != 3 {
    		t.Errorf("expected %d contents, got %d", 3, count)
    	}
    
    	var contents []ItemContent
    	if err := tx.Find(&contents).Error; err != nil {
    		t.Errorf("failed to find contents, got error: %v", err)
    	}
    	if len(contents) != 3 {
    		t.Errorf("expected %d contents, got %d", 3, len(contents))
    	}
    
    	// test delete
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 16K bytes
    - Viewed (0)
  2. src/internal/syscall/windows/zsyscall_windows.go

    // Errno values.
    const (
    	errnoERROR_IO_PENDING = 997
    )
    
    var (
    	errERROR_IO_PENDING error = syscall.Errno(errnoERROR_IO_PENDING)
    	errERROR_EINVAL     error = syscall.EINVAL
    )
    
    // errnoErr returns common boxed Errno values, to prevent
    // allocations at runtime.
    func errnoErr(e syscall.Errno) error {
    	switch e {
    	case 0:
    		return errERROR_EINVAL
    	case errnoERROR_IO_PENDING:
    		return errERROR_IO_PENDING
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  3. pilot/pkg/security/authz/model/generator.go

    	return nil, fmt.Errorf("unimplemented")
    }
    
    func (envoyFilterGenerator) extendedPrincipal(_ string, _ []string, _ bool) (*rbacpb.Principal, error) {
    	return nil, fmt.Errorf("unimplemented")
    }
    
    type srcIPGenerator struct{}
    
    func (srcIPGenerator) permission(_, _ string, _ bool) (*rbacpb.Permission, error) {
    	return nil, fmt.Errorf("unimplemented")
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 03 18:02:42 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. pkg/scheduler/util/assumecache/assume_cache.go

    	cache.delete(obj)
    }
    
    // Sentinel errors that can be checked for with errors.Is.
    var (
    	ErrWrongType  = errors.New("object has wrong type")
    	ErrNotFound   = errors.New("object not found")
    	ErrObjectName = errors.New("cannot determine object name")
    )
    
    type WrongTypeError struct {
    	TypeName string
    	Object   interface{}
    }
    
    func (e WrongTypeError) Error() string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. pkg/controller/volume/attachdetach/attach_detach_controller_test.go

    	err := adc.populateActualStateOfWorld(logger)
    	if err != nil {
    		t.Fatalf("Run failed with error. Expected: <no error> Actual: <%v>", err)
    	}
    
    	err = adc.populateDesiredStateOfWorld(logger)
    	if err != nil {
    		t.Fatalf("Run failed with error. Expected: <no error> Actual: %v", err)
    	}
    
    	// Test the ActualStateOfWorld contains all the node volumes
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/python/mlir.cc

      writer_config.setDesiredBytecodeVersion(1);
      std::string error;
      std::unique_ptr<llvm::ToolOutputFile> outputFile =
          mlir::openOutputFile(filename, &error);
      if (!error.empty()) {
        TF_SetStatus(status, TF_INVALID_ARGUMENT,
                     ("Unable to create output file " + error).c_str());
        return;
      }
      outputFile->keep();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. src/net/lookup_plan9.go

    	if len(f) < 2 {
    		return "", "", errors.New("bad response from ndb/cs")
    	}
    	clone, dest = f[0], f[1]
    	return
    }
    
    func queryDNS(ctx context.Context, addr string, typ string) (res []string, err error) {
    	return query(ctx, netdir+"/dns", addr+" "+typ, 1024)
    }
    
    func handlePlan9DNSError(err error, name string) error {
    	if stringslite.HasSuffix(err.Error(), "dns: name does not exist") ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:08:38 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  8. security/pkg/pki/util/crypto_test.go

    		if c.errMsg != "" {
    			if err == nil {
    				t.Errorf("%s: no error is returned", id)
    			} else if c.errMsg != err.Error() {
    				t.Errorf(`%s: Unexpected error message: expected "%s" but got "%s"`, id, c.errMsg, err.Error())
    			}
    		} else if err != nil {
    			t.Errorf(`%s: Unexpected error message: expected no error but got "%s"`, id, err.Error())
    		} else if len(rootCertByte) == 0 {
    			t.Errorf("%s: rootCertByte is nil", id)
    		}
    	}
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 13:00:07 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go

    	requestHijacker, ok := w.(http.Hijacker)
    	if !ok {
    		klog.Errorf("Unable to hijack response writer: %T", w)
    		h.Responder.Error(w, req, fmt.Errorf("request connection cannot be hijacked: %T", w))
    		return true
    	}
    	requestHijackedConn, _, err := requestHijacker.Hijack()
    	if err != nil {
    		klog.Errorf("Unable to hijack response: %v", err)
    		h.Responder.Error(w, req, fmt.Errorf("error hijacking connection: %v", err))
    		return true
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  10. src/encoding/gob/encoder_test.go

    		t.Error("should get error for struct/non-struct")
    	} else if !strings.Contains(err.Error(), "type") {
    		t.Error("for struct/non-struct expected type error; got", err)
    	}
    	// Now try the other way
    	var nsp NonStruct
    	if err := encAndDec(ns, &nsp); err != nil {
    		t.Error(err)
    	}
    	if err := encAndDec(ns, &s); err == nil {
    		t.Error("should get error for non-struct/struct")
    	} else if !strings.Contains(err.Error(), "type") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top