Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for newSel (0.23 sec)

  1. pkg/test/framework/label/labels_test.go

    		{filter: "", labels: NewSet(Postsubmit), expected: true},
    		{filter: "", labels: NewSet(Postsubmit, CustomSetup), expected: true},
    		{filter: "$requires.kube", labels: NewSet(Postsubmit, CustomSetup), err: true},
    		{filter: "zoo", labels: NewSet(Postsubmit, CustomSetup), expected: true},
    		{filter: "postsubmit", labels: NewSet(Postsubmit), expected: true},
    		{filter: "postsubmit", labels: NewSet(CustomSetup), expected: false},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 18 17:08:05 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  2. pkg/cache/ttlCache_test.go

    	c := NewTTL(5*time.Minute, 1*time.Minute)
    	benchmarkCacheSet(c, b)
    }
    
    func BenchmarkTTLSetConcurrent(b *testing.B) {
    	c := NewTTL(5*time.Minute, 1*time.Minute)
    	benchmarkCacheSetConcurrent(c, b)
    }
    
    func BenchmarkTTLGetSetConcurrent(b *testing.B) {
    	c := NewTTL(5*time.Minute, 1*time.Minute)
    	benchmarkCacheGetSetConcurrent(c, b)
    }
    
    func BenchmarkTTLSetRemove(b *testing.B) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/table/writer_test.go

    	w := NewStyleWriter(got)
    	w.AddHeader("NAME", "NAMESPACE", "VERSION")
    	w.SetAddRowFunc(func(obj interface{}) Row {
    		o := obj.(testObject)
    		return Row{
    			Cells: []Cell{
    				NewCell(o.name),
    				NewCell(o.namespace, color.FgGreen),
    				NewCell(o.version),
    			},
    		}
    	})
    	w.AddRow(newTestObject("foo", "bar", "1.0"))
    	w.AddRow(newTestObject("baz", "qux", "2.0"))
    	w.AddRow(newTestObject("qux", "quux", "3"))
    	w.Flush()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Oct 08 04:41:42 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/proxy/proxy.go

    	newReq := req.WithContext(newCtx)
    	newReq.Header = utilnet.CloneHeader(req.Header)
    	newReq.URL = location
    	newReq.Host = location.Host
    
    	// If the original request has an audit ID, let's make sure we propagate this
    	// to the aggregated server.
    	if auditID, found := audit.AuditIDFrom(req.Context()); found {
    		newReq.Header.Set(auditinternal.HeaderAuditID, string(auditID))
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 19 00:36:22 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  5. src/hash/crc32/crc32_ppc64le.go

    		if uint64(uintptr(unsafe.Pointer(&p[0])))&uint64(vecAlignMask) != 0 {
    			align := uint64(uintptr(unsafe.Pointer(&p[0]))) & uint64(vecAlignMask)
    			newlen := vecMinLen - align
    			crc = ppc64SlicingUpdateBy8(crc, archCastagnoliTable8, p[:newlen])
    			p = p[newlen:]
    		}
    		// p should be aligned now
    		aligned := len(p) & ^vecAlignMask
    		crc = vectorCrc32(crc, crcCast, p[:aligned])
    		p = p[aligned:]
    	}
    	if len(p) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  6. pkg/registry/flowcontrol/flowschema/strategy.go

    		"flowcontrol.apiserver.k8s.io/v1beta1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    		"flowcontrol.apiserver.k8s.io/v1beta2": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    		"flowcontrol.apiserver.k8s.io/v1beta3": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    		"flowcontrol.apiserver.k8s.io/v1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 11:48:22 UTC 2023
    - 6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/stripmeta.go

    	if ok {
    		if vs == nil {
    			panic(fmt.Sprintf("Found unexpected nil manager which should never happen: %s", manager))
    		}
    		newSet := vs.Set().Difference(f.stripSet)
    		if newSet.Empty() {
    			delete(managed, manager)
    		} else {
    			managed[manager] = fieldpath.NewVersionedSet(newSet, vs.APIVersion(), vs.Applied())
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. istioctl/pkg/checkinject/checkinject.go

    			Cells: make([]table.Cell, 0),
    		}
    		row.Cells = append(row.Cells, table.NewCell(wa.Name), table.NewCell(wa.Revision))
    		if wa.Injected {
    			row.Cells = append(row.Cells, table.NewCell("✔", color.FgGreen))
    		} else {
    			row.Cells = append(row.Cells, table.NewCell("✘", color.FgRed))
    		}
    		row.Cells = append(row.Cells, table.NewCell(wa.Reason))
    		return row
    	})
    	w.AddHeader("WEBHOOK", "REVISION", "INJECTED", "REASON")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. src/net/http/http.go

    			return true
    		}
    	}
    	return false
    }
    
    func hexEscapeNonASCII(s string) string {
    	newLen := 0
    	for i := 0; i < len(s); i++ {
    		if s[i] >= utf8.RuneSelf {
    			newLen += 3
    		} else {
    			newLen++
    		}
    	}
    	if newLen == len(s) {
    		return s
    	}
    	b := make([]byte, 0, newLen)
    	var pos int
    	for i := 0; i < len(s); i++ {
    		if s[i] >= utf8.RuneSelf {
    			if pos < i {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. test/typeparam/issue51840.go

    			return false
    		}
    	}
    	return true
    }
    
    type Set[T comparable] map[T]struct{}
    
    func NewSet[T comparable](items ...T) Set[T] {
    	return nil
    }
    
    func (s Set[T]) Equals(other Set[T]) bool {
    	return EqualMap(s, other)
    }
    
    func main() {
    	NewSet[Addr](Addr{0, 0, nil})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 19:40:04 UTC 2022
    - 635 bytes
    - Viewed (0)
Back to top