- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for inCopy (0.12 sec)
-
src/net/addrselect_test.go
k := len(inCopy) - j - 1 inCopy[j], inCopy[k] = inCopy[k], inCopy[j] srcCopy[j], srcCopy[k] = srcCopy[k], srcCopy[j] } sortByRFC6724withSrcs(inCopy, srcCopy) if !reflect.DeepEqual(inCopy, tt.want) { t.Errorf("test %d, starting backwards:\nin = %s\ngot: %s\nwant: %s\n", i, tt.in, inCopy, tt.want) } } } } func TestRFC6724PolicyTableOrder(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 05 07:16:00 UTC 2022 - 8.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/helpers_test.go
}}, }, expectErr: true, }, } for i, tc := range tc { inCopy := tc.in.DeepCopy() out, err := LabelSelectorAsSelector(tc.in) // after calling LabelSelectorAsSelector, tc.in shouldn't be modified if !reflect.DeepEqual(inCopy, tc.in) { t.Errorf("[%v]expected:\n\t%#v\nbut got:\n\t%#v", i, inCopy, tc.in) } if err == nil && tc.expectErr { t.Errorf("[%v]expected error but got none.", i) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 7.1K bytes - Viewed (0) -
src/encoding/asn1/marshal_test.go
out any } var testData []testCase for _, test := range unmarshalTestData { pv := reflect.New(reflect.TypeOf(test.out).Elem()) inCopy := make([]byte, len(test.in)) copy(inCopy, test.in) outCopy := pv.Interface() testData = append(testData, testCase{ in: inCopy, out: outCopy, }) } b.ResetTimer() for i := 0; i < b.N; i++ { for _, testCase := range testData {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 10K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/labels/selector_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 14 16:39:04 UTC 2022 - 29.9K bytes - Viewed (0) -
pkg/util/async/runner_test.go
funcs []func(chan struct{}) ) done := make(chan struct{}, 20) for i := 0; i < 10; i++ { iCopy := i funcs = append(funcs, func(c chan struct{}) { lock.Lock() events = append(events, fmt.Sprintf("%v starting\n", iCopy)) lock.Unlock() <-c lock.Lock() events = append(events, fmt.Sprintf("%v stopping\n", iCopy)) lock.Unlock() done <- struct{}{} }) } r := NewRunner(funcs...) r.Start()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 29 06:37:00 UTC 2016 - 1.2K bytes - Viewed (0) -
tensorflow/compiler/jit/resource_operation_safety_analysis.cc
return; } for (ResourceOp resource_op : other) { Add(resource_op); } } void Add(const ResourceOp& resource_op) { CHECK(!frozen_); if (!IsCopy() && Contains(resource_op)) { // We can avoid the copy if the item we want to insert already exists. return; } EnsureIsCopied(); impl_->insert(resource_op); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 09 11:36:41 UTC 2024 - 11.2K bytes - Viewed (0) -
cmd/storage-rest-client.go
if opts.NoOp { ctx, cancel := context.WithTimeout(ctx, 5*time.Second) defer cancel() opts.DiskID = *client.diskID.Load() infop, err := storageDiskInfoRPC.Call(ctx, client.gridConn, &opts) if err != nil { return info, toStorageErr(err) } info = *infop if info.Error != "" { return info, toStorageErr(errors.New(info.Error)) } return info, nil
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 27.4K bytes - Viewed (0) -
src/cmd/compile/internal/walk/assign.go
// instantiate func memmove(to *any, frm *any, length uintptr) fn := typecheck.LookupRuntime("memmove", elemtype, elemtype) ncopy = mkcall1(fn, nil, &nodes, addr, sptr, nwid) } ln := append(nodes, ncopy) typecheck.Stmts(ln) walkStmtList(ln) init.Append(ln...) return s } // isAppendOfMake reports whether n is of the form append(x, make([]T, y)...).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:09:06 UTC 2024 - 20.3K bytes - Viewed (0) -
src/net/http/transfer.go
dst := w if t.Method == "CONNECT" { dst = bufioFlushWriter{dst} } ncopy, err = t.doBodyCopy(dst, body) } else { ncopy, err = t.doBodyCopy(w, io.LimitReader(body, t.ContentLength)) if err != nil { return err } var nextra int64 nextra, err = t.doBodyCopy(io.Discard, body) ncopy += nextra } if err != nil { return err } } if t.BodyCloser != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 22:14:00 UTC 2024 - 31.1K bytes - Viewed (0) -
src/runtime/stack.go
// Synchronize with channel ops and copy the part of // the stack they may interact with. ncopy -= syncadjustsudogs(gp, used, &adjinfo) } // Copy the stack (or the rest of it) to the new location memmove(unsafe.Pointer(new.hi-ncopy), unsafe.Pointer(old.hi-ncopy), ncopy) // Adjust remaining structures that have pointers into stacks. // We have to do most of these before we traceback the new
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 41.1K bytes - Viewed (0)