Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,383 for EQUAL (0.06 sec)

  1. pkg/kubelet/stats/cadvisor_stats_provider_test.go

    	assert.NoError(err)
    
    	assert.Equal(imageFsInfo.Timestamp, stats.Time.Time)
    	assert.Equal(imageFsInfo.Available, *stats.AvailableBytes)
    	assert.Equal(imageFsInfo.Capacity, *stats.CapacityBytes)
    	assert.Equal(imageStats.TotalStorageBytes, *stats.UsedBytes)
    	assert.Equal(imageFsInfo.InodesFree, stats.InodesFree)
    	assert.Equal(imageFsInfo.Inodes, stats.Inodes)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  2. pkg/lazy/lazy_test.go

    				return res, nil
    			}
    
    			return res, fmt.Errorf("not yet")
    		})
    		res, err := l.Get()
    		assert.Error(t, err)
    		assert.Equal(t, res, 1)
    
    		res, err = l.Get()
    		assert.Error(t, err)
    		assert.Equal(t, res, 2)
    
    		res, err = l.Get()
    		assert.NoError(t, err)
    		assert.Equal(t, res, 3)
    	})
    
    	t.Run("no retry", func(t *testing.T) {
    		computations := atomic.NewInt32(0)
    		l := New(func() (int32, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 17:36:41 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/listenertest/match.go

    	}
    	if want.Name != "" {
    		assert.Equal(t, want.Name, have.Name, context("name should be equal"))
    	}
    	if want.Type != "" {
    		assert.Equal(t, want.Type, haveType, context(fmt.Sprintf("type should be equal (%+v)", have.FilterChainMatch)))
    	}
    	if want.Port != 0 {
    		assert.Equal(t, want.Port, have.GetFilterChainMatch().GetDestinationPort().GetValue(), context("port should be equal"))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. pkg/kubelet/winstats/winstats_test.go

    		},
    		Stats: stats,
    	}
    
    	assert.Equal(t, len(actualRootInfos), len(infos))
    	assert.Equal(t, actualRootInfos["/"].Spec, infos["/"].Spec)
    	assert.Equal(t, len(actualRootInfos["/"].Stats), len(infos["/"].Stats))
    	assert.Equal(t, actualRootInfos["/"].Stats[0].Cpu, infos["/"].Stats[0].Cpu)
    	assert.Equal(t, actualRootInfos["/"].Stats[0].CpuInst, infos["/"].Stats[0].CpuInst)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 12:08:15 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. src/crypto/ed25519/ed25519_test.go

    		t.Errorf("private.Public() is not Equal to public: %q", public)
    	}
    	if !private.Equal(private) {
    		t.Errorf("private key is not equal to itself: %q", private)
    	}
    
    	otherPub, otherPriv, _ := GenerateKey(rand.Reader)
    	if public.Equal(otherPub) {
    		t.Errorf("different public keys are Equal")
    	}
    	if private.Equal(otherPriv) {
    		t.Errorf("different private keys are Equal")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. pkg/config/analysis/diag/message_test.go

    	m.DocRef = "test-ref"
    
    	mb := m.UnstructuredAnalysisMessageBase()
    	g.Expect(mb["documentationUrl"]).To(Equal(fmt.Sprintf("%s/%s/%s", url.ConfigAnalysis, "ist0042", "?ref=test-ref")))
    	g.Expect(mb["level"]).To(Equal("ERROR"))
    	g.Expect(mb["type"]).To(Equal(
    		map[string]any{
    			"code": "IST0042",
    		},
    	))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. pkg/kube/krt/singleton_test.go

    	s.Register(TrackerHandler[string](tt))
    
    	assert.Equal(t, s.Get(), nil)
    
    	s.Set(ptr.Of("foo"))
    	assert.Equal(t, s.Get(), ptr.Of("foo"))
    	tt.WaitOrdered("add/foo")
    
    	s.Set(nil)
    	assert.Equal(t, s.Get(), nil)
    	tt.WaitOrdered("delete/foo")
    
    	s.Set(ptr.Of("bar"))
    	assert.Equal(t, s.Get(), ptr.Of("bar"))
    	tt.WaitOrdered("add/bar")
    
    	s.Set(ptr.Of("bar2"))
    	assert.Equal(t, s.Get(), ptr.Of("bar2"))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 08:27:29 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. pkg/kubelet/images/image_gc_manager_test.go

    	require.NoError(t, err)
    	assert.Equal(manager.imageRecordsLen(), 3)
    	noContainer, ok := manager.getImageRecord(imageID(0))
    	require.True(t, ok)
    	assert.Equal(zero, noContainer.firstDetected)
    	assert.Equal(zero, noContainer.lastUsed)
    	assert.Equal("", noContainer.runtimeHandlerUsedToPullImage)
    	withContainer, ok := manager.getImageRecord(imageID(1))
    	require.True(t, ok)
    	assert.Equal(zero, withContainer.firstDetected)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 15:38:20 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

          fail("Should fail on null equal object");
        } catch (NullPointerException e) {
        }
      }
    
      /** Test adding null equal object yields error */
      public void testAddNullEqualObject() {
        try {
          equalsTester.addEqualityGroup(reference, (Object[]) null);
          fail("Should fail on null equal object");
        } catch (NullPointerException e) {
        }
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/internal/classpath/intercept/InterceptScopeTest.groovy

        }
    
        def "method and property scopes with the same name are not equal"() {
            when:
            InterceptScope methodScope = InterceptScope.methodsNamed("name")
            InterceptScope propertyScope = InterceptScope.readsOfPropertiesNamed("name")
    
            then:
            methodScope != propertyScope
        }
    
        def "constructor scopes of the same class are equal"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 03 11:20:13 UTC 2022
    - 2.2K bytes
    - Viewed (0)
Back to top