- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for newSel (0.19 sec)
-
pkg/controller/disruption/disruption_test.go
informerFactory, }, ps } func fooBar() map[string]string { return map[string]string{"foo": "bar"} } func newSel(labels map[string]string) *metav1.LabelSelector { return &metav1.LabelSelector{MatchLabels: labels} } func newSelFooBar() *metav1.LabelSelector { return newSel(map[string]string{"foo": "bar"}) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 50K bytes - Viewed (0) -
src/net/http/client_test.go
{lastReq: "http://gopher:******@****.***", newReq: "http://link.com", want: "http://test.com"}, {lastReq: "https://gopher:******@****.***", newReq: "https://link.com", want: "https://test.com"}, // nothing to do: {lastReq: "http://test.com", newReq: "http://link.com", want: "http://test.com"}, {lastReq: "https://test.com", newReq: "https://link.com", want: "https://test.com"}, // https to http doesn't send a referer:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:30:50 UTC 2024 - 63.8K bytes - Viewed (0) -
src/time/time_test.go
for i := int64(0); i < 100; i++ { sec := notMonoTime.Unix() notMonoTime = notMonoTime.Add(Duration(i * 1e9)) if newSec := notMonoTime.Unix(); newSec != sec+i && newSec+UnixToInternal != maxInt64 { t.Fatalf("time ext: %d overflows with positive delta, overflow threshold: %d", newSec, maxInt64) } } // Test it with negative delta. maxInt64 = -maxInt64 notMonoTime = NotMonoNegativeTime
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:13:47 UTC 2024 - 56.5K bytes - Viewed (0) -
cmd/test-utils_test.go
hexChunkSize, chunkSignature)) newChunk, err := io.ReadAll(bufReader) if err != nil { return nil, err } newReq := req newReq.Body = io.NopCloser( bytes.NewReader(bytes.Join([][]byte{newChunkHdr, newChunk[:len(newChunk)/2]}, []byte(""))), ) return newReq, nil } // Malform data given a request signed using streaming signature V4.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 76.9K bytes - Viewed (0) -
src/runtime/mgcscavenge.go
func (sc *scavChunkData) alloc(npages uint, newGen uint32) { if uint(sc.inUse)+npages > pallocChunkPages { print("runtime: inUse=", sc.inUse, " npages=", npages, "\n") throw("too many pages allocated in chunk?") } if sc.gen != newGen { sc.lastInUse = sc.inUse sc.gen = newGen } sc.inUse += uint16(npages) if sc.inUse == pallocChunkPages {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:48:45 UTC 2024 - 52.3K bytes - Viewed (0) -
src/net/http/transport.go
// does not have GetBody but the body hasn't been read at all yet. func setupRewindBody(req *Request) *Request { if req.Body == nil || req.Body == NoBody { return req } newReq := *req newReq.Body = &readTrackingBody{ReadCloser: req.Body} return &newReq } // rewindBody returns a new request with the body rewound. // It returns req unmodified if the body does not need rewinding.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 21:59:21 UTC 2024 - 91K bytes - Viewed (0) -
src/crypto/tls/common.go
var newKey [32]byte if _, err := io.ReadFull(c.rand(), newKey[:]); err != nil { panic(fmt.Sprintf("unable to generate random session ticket key: %v", err)) } valid := make([]ticketKey, 0, len(c.autoSessionTicketKeys)+1) valid = append(valid, c.ticketKeyFromBytes(newKey)) for _, k := range c.autoSessionTicketKeys {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 59.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go
bigMostNegative = big.NewInt(mostNegative) ) func dec(i int64, exponent int) infDecAmount { // See the below test-- scale is the negative of an exponent. return infDecAmount{inf.NewDec(i, inf.Scale(-exponent))} } func bigDec(i *big.Int, exponent int) infDecAmount { // See the below test-- scale is the negative of an exponent. return infDecAmount{inf.NewDecBig(i, inf.Scale(-exponent))} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 49.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go
var _p0 unsafe.Pointer if len(mib) > 0 { _p0 = unsafe.Pointer(&mib[0]) } else { _p0 = unsafe.Pointer(&_zero) } _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) if e1 != 0 { err = errnoErr(e1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 57.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go
var _p0 unsafe.Pointer if len(mib) > 0 { _p0 = unsafe.Pointer(&mib[0]) } else { _p0 = unsafe.Pointer(&_zero) } _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) if e1 != 0 { err = errnoErr(e1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 57.5K bytes - Viewed (0)