- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 994 for EQUAL (2.99 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
pkg/config/analysis/diag/message_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 3.7K bytes - Viewed (0) -
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) -
pkg/config/schema/collection/schemas_test.go
actual := c.actual() g.Expect(actual).To(Equal(c.expected)) }) } } func TestSchemas_Remove(t *testing.T) { g := NewWithT(t) schemas := collection.SchemasFor(emptyResource, structResource) g.Expect(schemas.Remove(structResource)).To(Equal(collection.SchemasFor(emptyResource))) g.Expect(schemas.Remove(emptyResource, structResource)).To(Equal(collection.SchemasFor()))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 5.4K bytes - Viewed (0)