Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 99 for newPos (0.28 sec)

  1. pkg/registry/rbac/helpers_test.go

    	}{
    		{
    			name: "same",
    			obj: func() runtime.Object {
    				return newPod()
    			},
    			old: func() runtime.Object {
    				return newPod()
    			},
    			expected: true,
    		},
    		{
    			name: "different managedFields",
    			obj: func() runtime.Object {
    				return newPod()
    			},
    			old: func() runtime.Object {
    				obj := newPod()
    				obj.ManagedFields = []metav1.ManagedFieldsEntry{
    					{
    						Manager: "manager",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 05 20:12:50 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  2. subprojects/core/src/testFixtures/groovy/org/gradle/util/BinaryDiffUtils.groovy

                    int costInsert = cost[i] + 1;
                    int costDelete = newcost[i - 1] + 1;
    
                    // keep minimum cost
                    newcost[i] = Math.min(Math.min(costInsert, costDelete), costReplace);
                }
    
                // swap cost/newcost arrays
                int[] swap = cost; cost = newcost; newcost = swap;
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 14 11:47:34 UTC 2016
    - 2.4K bytes
    - Viewed (0)
  3. src/testdata/Isaac.Newton-Opticks.txt

    Katie Hockman <******@****.***> 1538406471 +0000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 01 16:16:21 UTC 2018
    - 553.9K bytes
    - Viewed (0)
  4. pkg/registry/discovery/endpointslice/strategy_test.go

    			Strategy.PrepareForUpdate(context.TODO(), tc.newEPS, tc.oldEPS)
    			if !apiequality.Semantic.DeepEqual(tc.newEPS, tc.expectedEPS) {
    				t.Errorf("Expected %+v\nGot: %+v", tc.expectedEPS, tc.newEPS)
    			}
    		})
    	}
    }
    
    func Test_dropTopologyOnV1(t *testing.T) {
    	testcases := []struct {
    		name        string
    		v1Request   bool
    		newEPS      *discovery.EndpointSlice
    		originalEPS *discovery.EndpointSlice
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/apis/bootstraptoken/v1/utils_test.go

    	}
    	for _, rt := range tests {
    		t.Run(rt.input, func(t *testing.T) {
    			newbts := &BootstrapTokenString{}
    			err := json.Unmarshal([]byte(rt.input), newbts)
    			if (err != nil) != rt.expectedError {
    				t.Errorf("failed BootstrapTokenString.UnmarshalJSON:\n\texpected error: %t\n\t  actual error: %v", rt.expectedError, err)
    			} else if !reflect.DeepEqual(rt.bts, newbts) {
    				t.Errorf(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 26 15:51:39 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  6. src/go/printer/testdata/slow.golden

    							2:	&Foo{},
    							1:	&Bar{},
    							-1:	&Baz{whatever: "... it's just a test."}}}},
    						bang:	&Bar{foo: []*Foo{}}}}}}}}}
    }
    
    func TestElaborate(t *testing.T) {
    	a := newFoo()
    	b := newFoo()
    
    	if err := deepequal.Check(a, b); err != nil {
    		t.Errorf("expected nil, saw %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/constant_op_device_assignment.cc

            mlir::Operation *new_op = builder.clone(*op.getOperation());
            new_op->setAttr(kDeviceAttr, device_attr);
            cloned_op_by_device[device_attr.getValue()] = new_op;
          }
          // Update the user operation to use the result of the cloned ConstOp.
          mlir::Operation *new_op = cloned_op_by_device[device_attr.getValue()];
          user_op->setOperand(use.getOperandNumber(), new_op->getResult(0));
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/build/relnote/relnote.go

    			delta := lastLine + 2 - newdoc.Blocks[0].Pos().StartLine
    			for _, b := range newdoc.Blocks {
    				addLines(b, delta)
    			}
    		}
    		// Append non-empty blocks to the result document.
    		for _, b := range newdoc.Blocks {
    			if _, ok := b.(*md.Empty); !ok {
    				doc.Blocks = append(doc.Blocks, b)
    			}
    		}
    		// Merge link references.
    		for key, link := range newdoc.Links {
    			if doc.Links[key] != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  9. pkg/bootstrap/platform/discovery.go

    func Discover(ipv6 bool) Environment {
    	// First check if user has specified platform - use it if provided.
    	if len(CloudPlatform) > 0 {
    		switch strings.ToLower(CloudPlatform) {
    		case "aws":
    			return NewAWS(ipv6)
    		case "azure":
    			return NewAzure()
    		case "gcp":
    			return NewGCP()
    		case "none":
    			return &Unknown{}
    		}
    	}
    	// Discover the platform if user has not specified.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  10. pkg/registry/batch/job/strategy_test.go

    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.JobBackoffLimitPerIndex, tc.enableJobBackoffLimitPerIndex)
    			newJob := tc.job.DeepCopy()
    			tc.update(newJob)
    			errs := Strategy.ValidateUpdate(ctx, newJob, tc.job)
    			if diff := cmp.Diff(tc.wantErrs, errs, ignoreErrValueDetail); diff != "" {
    				t.Errorf("Unexpected errors (-want,+got):\n%s", diff)
    			}
    		})
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 101.5K bytes
    - Viewed (0)
Back to top