Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for newedge (0.43 sec)

  1. src/cmd/compile/internal/ssa/poset.go

    		//
    		extra := po.newnode(nil)
    		if (i1^i2)&1 != 0 { // non-deterministic
    			po.setchl(extra, i1r)
    			po.setchr(extra, e2)
    			po.setchr(i1, newedge(extra, false))
    			po.upush(undoSetChr, i1, i1r)
    		} else {
    			po.setchl(extra, i1l)
    			po.setchr(extra, e2)
    			po.setchl(i1, newedge(extra, false))
    			po.upush(undoSetChl, i1, i1l)
    		}
    	}
    }
    
    // newnode allocates a new node bound to SSA value n.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 17:23:05 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation_test.go

    			if !hasError(errs, needle) {
    				t.Errorf("missing %q in\n%v", needle, errorsAsString(errs))
    			}
    			needle = `status.conditions[0].observedGeneration: Invalid value: -1: must be greater than or equal to zero`
    			if !hasError(errs, needle) {
    				t.Errorf("missing %q in\n%v", needle, errorsAsString(errs))
    			}
    			needle = `status.conditions[0].lastTransitionTime: Required value: must be set`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  3. pilot/pkg/model/config.go

    // matching the needle and it's value, or false if no element in the maps matches the needle.
    func MostSpecificHostMatch[V any](needle host.Name, specific map[host.Name]V, wildcard map[host.Name]V) (host.Name, V, bool) {
    	if needle.IsWildCarded() {
    		// exact match first
    		if v, ok := wildcard[needle]; ok {
    			return needle, v, true
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 08:51:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. src/slices/sort_benchmark_test.go

    			floats := make([]float64, size)
    			for i := range floats {
    				floats[i] = float64(i)
    			}
    			midpoint := len(floats) / 2
    			needle := (floats[midpoint] + floats[midpoint+1]) / 2
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				slices.BinarySearch(floats, needle)
    			}
    		})
    	}
    }
    
    type myStruct struct {
    	a, b, c, d string
    	n          int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. plugin/pkg/auth/authorizer/node/graph.go

    		e := newDestinationEdge(serviceAccountVertex, podVertex, nodeVertex)
    		g.graph.SetEdge(e)
    		g.addEdgeToDestinationIndex_locked(e)
    	}
    
    	podutil.VisitPodSecretNames(pod, func(secret string) bool {
    		secretVertex := g.getOrCreateVertex_locked(secretVertexType, pod.Namespace, secret)
    		e := newDestinationEdge(secretVertex, podVertex, nodeVertex)
    		g.graph.SetEdge(e)
    		g.addEdgeToDestinationIndex_locked(e)
    		return true
    	})
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. pilot/pkg/model/config_test.go

    			} else {
    				specific.Insert(h)
    			}
    		}
    
    		t.Run(fmt.Sprintf("[%d] %s", idx, tt.needle), func(t *testing.T) {
    			actual, value, found := model.MostSpecificHostMatch(tt.needle, specific, wildcard)
    			if tt.want != "" && !found {
    				t.Fatalf("model.MostSpecificHostMatch(%q, %v) = %v, %v, %t; want: %v", tt.needle, tt.in, actual, value, found, tt.want)
    			} else if actual != tt.want {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 20 12:54:10 UTC 2023
    - 19K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/helpers.go

    func CRDHasFinalizer(crd *CustomResourceDefinition, needle string) bool {
    	for _, finalizer := range crd.Finalizers {
    		if finalizer == needle {
    			return true
    		}
    	}
    
    	return false
    }
    
    // CRDRemoveFinalizer removes the finalizer if present.
    func CRDRemoveFinalizer(crd *CustomResourceDefinition, needle string) {
    	newFinalizers := []string{}
    	for _, finalizer := range crd.Finalizers {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 27 10:54:44 UTC 2019
    - 9K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/dwarf.go

    			fld := d.newdie(dwhb, dwarf.DW_ABRV_STRUCTFIELD, "keys")
    			d.newrefattr(fld, dwarf.DW_AT_type, dwhks)
    			newmemberoffsetattr(fld, abi.MapBucketCount)
    			fld = d.newdie(dwhb, dwarf.DW_ABRV_STRUCTFIELD, "values")
    			d.newrefattr(fld, dwarf.DW_AT_type, dwhvs)
    			newmemberoffsetattr(fld, abi.MapBucketCount+abi.MapBucketCount*int32(keysize))
    			fld = d.newdie(dwhb, dwarf.DW_ABRV_STRUCTFIELD, "overflow")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  9. src/runtime/string_test.go

    	// See issue 25864.
    	haystack := []byte("hello")
    	needle := "ll"
    	n := testing.AllocsPerRun(1000, func() {
    		if strings.Index(string(haystack), needle) != 2 {
    			t.Fatalf("needle not found")
    		}
    	})
    	if n != 0 {
    		t.Fatalf("want 0 allocs, got %v", n)
    	}
    }
    
    func TestStringIndexNeedle(t *testing.T) {
    	// See issue 25864.
    	haystack := "hello"
    	needle := []byte("ll")
    	n := testing.AllocsPerRun(1000, func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 13 14:05:23 UTC 2022
    - 13.3K bytes
    - Viewed (0)
  10. plugin/pkg/auth/authorizer/node/graph_test.go

    				nodeVertex2 := g.getOrCreateVertex_locked(nodeVertexType, "", "node2")
    				configmapVertex := g.getOrCreateVertex_locked(configMapVertexType, "namespace1", "configmap1")
    				g.graph.SetEdge(newDestinationEdge(configmapVertex, nodeVertex1, nodeVertex1))
    				g.graph.SetEdge(newDestinationEdge(configmapVertex, nodeVertex2, nodeVertex2))
    				return g
    			}(),
    			expect: func() *Graph {
    				g := NewGraph()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 23:14:19 UTC 2022
    - 12.3K bytes
    - Viewed (0)
Back to top