- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 2,371 for EQUAL (0.04 sec)
-
internal/cachevalue/cache_test.go
if err != nil { t.Fatalf("expected nil err, got %v", err) } if !t1.Equal(t2) { t.Fatalf("expected time to be equal: %s != %s", t1, t2) } time.Sleep(3 * time.Second) t3, err := cache.GetWithCtx(ctx) if err != nil { t.Fatalf("expected nil err, got %v", err) } if t1.Equal(t3) { t.Fatalf("expected time to be un-equal: %s == %s", t1, t3) } } func TestCache(t *testing.T) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 09 00:51:34 UTC 2024 - 2.7K bytes - Viewed (0) -
pkg/config/analysis/analyzers/util/find_errorline_utils_test.go
g.Expect(ExtractLabelFromSelectorString(s)).To(Equal("label")) } func TestErrorLine(t *testing.T) { g := NewWithT(t) r := &resource.Instance{Origin: &legacykube.Origin{FieldsMap: fieldMap}} test1, err1 := ErrorLine(r, "{.metadata.name}") test2, err2 := ErrorLine(r, "{.metadata.fake}") g.Expect(test1).To(Equal(1)) g.Expect(err1).To(Equal(true)) g.Expect(test2).To(Equal(0)) g.Expect(err2).To(Equal(false)) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 17:36:47 UTC 2024 - 3.5K bytes - Viewed (0) -
pkg/typemap/map_test.go
typemap.Set[TestInterface[string]](tm, TestStruct{Field: "interface"}) assert.Equal(t, typemap.Get[int](tm), ptr.Of(1)) assert.Equal(t, typemap.Get[int32](tm), ptr.Of(int32(2))) assert.Equal(t, typemap.Get[string](tm), ptr.Of("string")) assert.Equal(t, typemap.Get[*TestStruct](tm), ptr.Of(&TestStruct{Field: "pointer"})) assert.Equal(t, typemap.Get[TestInterface[string]](tm), ptr.Of(TestInterface[string](TestStruct{Field: "interface"})))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 1.5K bytes - Viewed (0) -
pkg/util/sets/set_test.go
} }) } } func TestInsertContains(t *testing.T) { s := New[string]() assert.Equal(t, s.InsertContains("k1"), false) assert.Equal(t, s.InsertContains("k1"), true) assert.Equal(t, s.InsertContains("k2"), false) assert.Equal(t, s.InsertContains("k2"), true) } func BenchmarkSet(b *testing.B) { containsTest := New[string]() for i := 0; i < 1000; i++ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 05:26:03 UTC 2024 - 7.9K bytes - Viewed (0) -
cni/pkg/nodeagent/healthServer_test.go
installReady.Store(true) watchReady.Store(true) assert.Equal(t, installReady.Load(), true) assert.Equal(t, watchReady.Load(), true) makeReq(t, server.URL, constants.LivenessEndpoint, http.StatusOK) makeReq(t, server.URL, constants.ReadinessEndpoint, http.StatusOK) watchReady.Store(false) assert.Equal(t, watchReady.Load(), false) assert.Equal(t, installReady.Load(), true)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 2K bytes - Viewed (0) -
istioctl/pkg/util/formatting/formatter_test.go
origin: GrandCastle ` g.Expect(output).To(Equal(expectedOutput)) } func TestFormatter_PrintEmpty(t *testing.T) { g := NewWithT(t) msgs := diag.Messages{} logOutput, _ := Print(msgs, LogFormat, false) g.Expect(logOutput).To(Equal("")) jsonOutput, _ := Print(msgs, JSONFormat, false) g.Expect(jsonOutput).To(Equal("[]")) yamlOutput, _ := Print(msgs, YAMLFormat, false)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 4.1K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/manager_test.go
as.Nil(runContainerOpts) } else { as.Equal(len(runContainerOpts.Devices), testCase.expectedContainerOptsLen[0]) as.Equal(len(runContainerOpts.Mounts), testCase.expectedContainerOptsLen[1]) as.Equal(len(runContainerOpts.Envs), testCase.expectedContainerOptsLen[2]) } as.Equal(testCase.expectedAllocatedResName1, testManager.allocatedDevices[res1.resourceName].Len())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 65K bytes - Viewed (0) -
platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/AbstractLibrary.java
return Objects.equal(isExported(), that.isExported()) && Objects.equal(getAccessRules(), that.getAccessRules()) && Objects.equal(getJavadocPath(), that.getJavadocPath()) && Objects.equal(getNativeLibraryLocation(), that.getNativeLibraryLocation()) && Objects.equal(getPath(), that.getPath()) && Objects.equal(getSourcePath(), that.getSourcePath()); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 4.2K bytes - Viewed (0) -
pkg/ledger/ledger_test.go
_, err = l.Put(longKey+"2", "2") assert.NoError(t, err) res, err := l.Get(longKey + "1") assert.NoError(t, err) assert.Equal(t, res, "1") res, err = l.Get(longKey + "2") assert.NoError(t, err) assert.Equal(t, res, "2") res, err = l.Get(longKey) assert.NoError(t, err) assert.Equal(t, res, "") } func TestGetAndPrevious(t *testing.T) { l := smtLedger{tree: newSMT(hasher, nil, time.Minute)}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jul 12 16:12:59 UTC 2023 - 4K bytes - Viewed (0) -
src/syscall/js/js_test.go
t.Errorf("got %#v, want %#v", got, want) } if !dummys.Get("someFloat").Equal(dummys.Get("someFloat")) { t.Errorf("same value not equal") } } func TestObject(t *testing.T) { if !dummys.Get("someArray").Equal(dummys.Get("someArray")) { t.Errorf("same value not equal") } // An object and its prototype should not be equal. proto := js.Global().Get("Object").Get("prototype")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 17.7K bytes - Viewed (0)