Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 106 for dedupes (0.2 sec)

  1. staging/src/k8s.io/apiserver/pkg/quota/v1/resources_test.go

    		"b has extra": {
    			a:        []corev1.ResourceName{corev1.ResourceCPU},
    			b:        []corev1.ResourceName{corev1.ResourceCPU, corev1.ResourceMemory},
    			expected: []corev1.ResourceName{corev1.ResourceCPU},
    		},
    		"dedupes": {
    			a:        []corev1.ResourceName{corev1.ResourceCPU, corev1.ResourceCPU, corev1.ResourceMemory, corev1.ResourceMemory},
    			b:        []corev1.ResourceName{corev1.ResourceCPU},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 01:57:38 UTC 2021
    - 15.6K bytes
    - Viewed (0)
  2. pilot/pkg/trustbundle/trustbundle_test.go

    		t.Errorf("Basic trustbundle update test failed. Callback value is %v", cbCounter)
    	}
    
    	// Add Second Cert update
    	// ensure intermediate CA certs accepted, it replaces the first completely, and lib dedupes duplicate cert
    	err = tb.UpdateTrustAnchor(&TrustAnchorUpdate{
    		TrustAnchorConfig: TrustAnchorConfig{Certs: []string{intermediateCACert, intermediateCACert}},
    		Source:            SourceMeshConfig,
    	})
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest.go

    		return
    	}
    	refs := accessor.GetOwnerReferences()
    	deduped, duplicates := dedupOwnerReferences(refs)
    	if len(duplicates) > 0 {
    		// NOTE: For CREATE and UPDATE requests the API server dedups both before and after mutating admission.
    		// For PATCH request the API server only dedups after mutating admission.
    		format := DuplicateOwnerReferencesWarningFormat
    		if afterMutatingAdmission {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 17K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

                    final String[] deduped = dedupe(elements);
                    return new AbstractSet<String>() {
                      @Override
                      public int size() {
                        return deduped.length;
                      }
    
                      @Override
                      public Iterator<String> iterator() {
                        return MinimalCollection.of(deduped).iterator();
                      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

                    final String[] deduped = dedupe(elements);
                    return new AbstractSet<String>() {
                      @Override
                      public int size() {
                        return deduped.length;
                      }
    
                      @Override
                      public Iterator<String> iterator() {
                        return MinimalCollection.of(deduped).iterator();
                      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  6. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/internal/configurer/HierarchicalElementDeduplicatorTest.groovy

            elementName("root:foo") == "foo"
            elementName("root:foo:app") == "foo-app"
            elementName("root:bar") == "bar"
            elementName("root:bar:app") == "bar-app"
        }
    
        def "dedups child element with same name as parent element"() {
            given:
            element("root") {
                element("app") {
                    element("app") {}
                }
            }
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storageversion/manager.go

    	// Sorting the list to make sure we have a consistent dedup result, and
    	// therefore avoid creating unnecessarily duplicated StorageVersion objects.
    	// For example, extensions.ingresses and networking.k8s.io.ingresses share
    	// the same underlying storage. Without sorting, in an HA cluster, one
    	// apiserver may dedup and update StorageVersion for extensions.ingresses,
    	// while another apiserver may dedup and update StorageVersion for
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 17:47:19 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/PartialEvaluatorTest.kt

    import org.junit.Assert.fail
    import org.junit.Test
    
    
    class PartialEvaluatorTest {
    
        @Test
        fun `Project target - top-level - empty`() {
    
            assertThat(
                "reduces to static program that applies default plugin requests and base plugins",
                partialEvaluationOf(
                    Program.Empty,
                    ProgramKind.TopLevel,
                    ProgramTarget.Project
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 38.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go

    					UID:        "1",
    				},
    			},
    		},
    	}
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			deduped, _ := dedupOwnerReferences(tc.ownerReferences)
    			if !apiequality.Semantic.DeepEqual(deduped, tc.expected) {
    				t.Errorf("diff: %v", cmp.Diff(deduped, tc.expected))
    			}
    		})
    	}
    }
    
    func TestParseYAMLWarnings(t *testing.T) {
    	yamlNoErrs := `---
    apiVersion: foo
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSet.java

        SetBuilderImpl(int expectedCapacity) {
          this.dedupedElements = (E[]) new Object[expectedCapacity];
          this.distinct = 0;
        }
    
        /** Initializes this SetBuilderImpl with a copy of the deduped elements array from toCopy. */
        SetBuilderImpl(SetBuilderImpl<E> toCopy) {
          this.dedupedElements = Arrays.copyOf(toCopy.dedupedElements, toCopy.dedupedElements.length);
          this.distinct = toCopy.distinct;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 35.3K bytes
    - Viewed (0)
Back to top