Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 2,383 for EQUAL (0.05 sec)

  1. pkg/config/analysis/analyzers/util/exportto_test.go

    	g := NewWithT(t)
    
    	// Empty array
    	g.Expect(IsExportToAllNamespaces(nil)).To(Equal(true))
    
    	// Array with "*"
    	g.Expect(IsExportToAllNamespaces([]string{"*"})).To(Equal(true))
    
    	// Array with "."
    	g.Expect(IsExportToAllNamespaces([]string{"."})).To(Equal(false))
    
    	// Array with "." & "*"
    	g.Expect(IsExportToAllNamespaces([]string{".", "*"})).To(Equal(true))
    
    	// Array with "bogus"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_image_test.go

    	imageRef, err := fakeManager.PullImage(ctx, kubecontainer.ImageSpec{Image: "busybox"}, nil, nil)
    	assert.NoError(t, err)
    	assert.Equal(t, "busybox", imageRef)
    
    	images, err := fakeManager.ListImages(ctx)
    	assert.NoError(t, err)
    	assert.Equal(t, 1, len(images))
    	assert.Equal(t, images[0].RepoTags, []string{"busybox"})
    }
    
    func TestPullImageWithError(t *testing.T) {
    	ctx := context.Background()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. pkg/util/env/env_test.go

    	t.Setenv(key, strconv.Itoa(expected))
    	returnVal, _ := GetEnvAsIntOrFallback(key, 1)
    	assert.Equal(expected, returnVal)
    
    	key = "FLOCKER_UNSET_VAR"
    	returnVal, _ = GetEnvAsIntOrFallback(key, expected)
    	assert.Equal(expected, returnVal)
    
    	key = "FLOCKER_SET_VAR"
    	t.Setenv(key, "not-an-int")
    	returnVal, err := GetEnvAsIntOrFallback(key, 1)
    	assert.Equal(expected, returnVal)
    	if err == nil {
    		t.Error("expected error")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:39:46 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/interface_test.go

    		name string
    		x, y *Status
    		want bool
    	}{
    		{
    			name: "two nil should be equal",
    			x:    nil,
    			y:    nil,
    			want: true,
    		},
    		{
    			name: "nil should be equal to success status",
    			x:    nil,
    			y:    NewStatus(Success),
    			want: true,
    		},
    		{
    			name: "nil should not be equal with status except success",
    			x:    nil,
    			y:    NewStatus(Error, "internal error"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 22 04:41:59 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  5. pkg/ledger/smt_test.go

    		value, _ := smt.get(root, key, nil, 0, smt.trieHeight)
    		if !bytes.Equal(values[i], value) {
    			t.Fatal("value not updated")
    		}
    	}
    
    	// Append to the trie
    	newKeys := getFreshData(5)
    	newValues := getFreshData(5)
    	ch = make(chan result, 1)
    	smt.update(root, newKeys, newValues, nil, 0, smt.trieHeight, false, true, ch)
    	res = <-ch
    	newRoot := res.update
    	if bytes.Equal(root, newRoot) {
    		t.Fatal("trie not updated")
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. platforms/ide/problems-api/src/test/groovy/org/gradle/api/problems/internal/DefaultProblemDefinitionReport.groovy

    import spock.lang.Specification
    
    class DefaultProblemDefinitionReport extends Specification {
        def "equal objects are equal"() {
            when:
            def pd1 = createProblemDefinition()
            def pd2 = createProblemDefinition()
    
            then:
            pd1 == pd2
            pd1 == pd1
        }
    
        def "Changed label causes equal to be false"() {
    
            when:
            def pd1 = createProblemDefinition()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. pkg/kube/controllers/common_test.go

    	t.Run("extract typed", func(t *testing.T) {
    		assert.Equal(t, Extract[*corev1.Pod](obj), obj)
    		assert.Equal(t, Extract[*corev1.Pod](random), nil)
    		assert.Equal(t, Extract[*corev1.Pod](tombstone), obj)
    	})
    
    	t.Run("extract object", func(t *testing.T) {
    		assert.Equal(t, Extract[Object](obj), Object(obj))
    		assert.Equal(t, Extract[Object](obj), Object(obj))
    		assert.Equal(t, Extract[Object](random), nil)
    	})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 15 15:34:49 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. pkg/kube/krt/index_test.go

    	}
    	pc.CreateOrUpdateStatus(pod)
    	tt.WaitUnordered("add/namespace/name")
    	assert.Equal(t, fetchSorted("1.2.3.4"), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.4"}})
    
    	pod.Status.PodIP = "1.2.3.5"
    	pc.UpdateStatus(pod)
    	tt.WaitUnordered("update/namespace/name")
    	assert.Equal(t, fetchSorted("1.2.3.4"), []SimplePod{})
    	assert.Equal(t, fetchSorted("1.2.3.5"), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.5"}})
    
    	pod2 := &corev1.Pod{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/value_test.go

    	mv.AddField(priority)
    
    	mv2 := NewMapValue()
    	mv2.AddField(name)
    	if mv.Equal(mv2) != types.False {
    		t.Fatalf("mv.Equal(mv2) failed: %v", mv.Equal(mv2))
    	}
    
    	priority2 := NewField(5, "priority")
    	priority2.Ref = testValue(t, 6, int64(3))
    	mv2.AddField(priority2)
    	if mv.Equal(mv2) != types.False {
    		t.Fatalf("mv.Equal(mv2) failed: %v", mv.Equal(mv2))
    	}
    }
    
    func TestMapValueIsSet(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/external/model/AbstractMutableModuleComponentResolveMetadata.java

                return Objects.equal(group, that.group)
                    && Objects.equal(module, that.module)
                    && Objects.equal(versionConstraint, that.versionConstraint)
                    && Objects.equal(excludes, that.excludes)
                    && Objects.equal(reason, that.reason)
                    && Objects.equal(attributes, that.attributes)
                    && Objects.equal(requestedCapabilities, that.requestedCapabilities)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 25.1K bytes
    - Viewed (0)
Back to top