Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 487 for checkSeq (0.15 sec)

  1. src/cmd/compile/internal/types2/alias.go

    }
    
    // NewAlias creates a new Alias type with the given type name and rhs.
    // rhs must not be nil.
    func NewAlias(obj *TypeName, rhs Type) *Alias {
    	alias := (*Checker)(nil).newAlias(obj, rhs)
    	// Ensure that alias.actual is set (#65455).
    	alias.cleanup()
    	return alias
    }
    
    // Obj returns the type name for the declaration defining the alias type a.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. tests/associations_has_one_test.go

    	if err := DB.Create(&pet).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	CheckPet(t, pet, pet)
    
    	// Find
    	var pet2 Pet
    	DB.Find(&pet2, "id = ?", pet.ID)
    	DB.Model(&pet2).Association("Toy").Find(&pet2.Toy)
    	CheckPet(t, pet2, pet)
    
    	// Count
    	AssertAssociationCount(t, pet, "Toy", 1, "")
    
    	// Append
    	toy := Toy{Name: "toy-has-one-append"}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/directive/directive.go

    	return nil
    }
    
    type checker struct {
    	pass     *analysis.Pass
    	filename string
    	file     *ast.File // nil for non-Go file
    	inHeader bool      // in file header (before or adjoining package declaration)
    }
    
    func newChecker(pass *analysis.Pass, filename string, file *ast.File) *checker {
    	return &checker{
    		pass:     pass,
    		filename: filename,
    		file:     file,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/preflight/checks_test.go

    	var tokenTest = []struct {
    		p        []Checker
    		expected bool
    		output   string
    	}{
    		{[]Checker{}, true, ""},
    		{[]Checker{preflightCheckTest{"warning"}}, true, "\t[WARNING preflightCheckTest]: warning\n"}, // should just print warning
    		{[]Checker{preflightCheckTest{"error"}}, false, ""},
    		{[]Checker{preflightCheckTest{"test"}}, false, ""},
    		{[]Checker{DirAvailableCheck{Path: "/does/not/exist"}}, true, ""},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  5. src/runtime/cgocheck.go

    			}
    			src = add(src, at.Elem.Size_)
    			skipped := off
    			if skipped > at.Elem.Size_ {
    				skipped = at.Elem.Size_
    			}
    			checked := at.Elem.Size_ - skipped
    			off -= skipped
    			if size <= checked {
    				return
    			}
    			size -= checked
    		}
    	case abi.Struct:
    		st := (*structtype)(unsafe.Pointer(typ))
    		for _, f := range st.Fields {
    			if off < f.Typ.Size_ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. src/go/types/alias.go

    }
    
    // NewAlias creates a new Alias type with the given type name and rhs.
    // rhs must not be nil.
    func NewAlias(obj *TypeName, rhs Type) *Alias {
    	alias := (*Checker)(nil).newAlias(obj, rhs)
    	// Ensure that alias.actual is set (#65455).
    	alias.cleanup()
    	return alias
    }
    
    // Obj returns the type name for the declaration defining the alias type a.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. src/go/types/typeparam.go

    // constraint is non-nil, it must be fully defined.
    func NewTypeParam(obj *TypeName, constraint Type) *TypeParam {
    	return (*Checker)(nil).newTypeParam(obj, constraint)
    }
    
    // check may be nil
    func (check *Checker) newTypeParam(obj *TypeName, constraint Type) *TypeParam {
    	// Always increment lastID, even if it is not used.
    	id := nextID()
    	if check != nil {
    		check.nextID++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. tests/integration/pilot/mcs/discoverability/discoverability_test.go

    					runForAllClusterCombinations(t, func(t framework.TestContext, from echo.Instance, to echo.Target) {
    						var checker echo.Checker
    						if ht == hostTypeClusterLocal {
    							// For calls to cluster.local, ensure that all requests stay in the same cluster
    							expectedClusters := cluster.Clusters{from.Config().Cluster}
    							checker = checkClustersReached(t.AllClusters(), expectedClusters)
    						} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. hack/golangci.yaml

          description: structured logging checker
          original-url: k8s.io/logtools/logcheck
          settings:
            config: |
              # hack/logcheck.conf contains regular expressions that are matched against <pkg>/<file>,
              # for example k8s.io/cmd/kube-scheduler/app/config/config.go.
              #
              # By default, structured logging call parameters are checked, but usage of
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/stdlib_test.go

    	panic("unimplemented: use ImportFrom")
    }
    
    func (c *stdlibChecker) ImportFrom(path, dir string, _ ImportMode) (*Package, error) {
    	if path == "unsafe" {
    		// unsafe cannot be type checked normally.
    		return Unsafe, nil
    	}
    
    	p, err := build.Default.Import(path, dir, build.FindOnly)
    	if err != nil {
    		return nil, err
    	}
    
    	pkg, err := c.getDirPackage(p.Dir)
    	if pkg != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top