- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 2,582 for EQUAL (0.07 sec)
-
src/maps/maps_test.go
func TestEqual(t *testing.T) { if !Equal(m1, m1) { t.Errorf("Equal(%v, %v) = false, want true", m1, m1) } if Equal(m1, (map[int]int)(nil)) { t.Errorf("Equal(%v, nil) = true, want false", m1) } if Equal((map[int]int)(nil), m1) { t.Errorf("Equal(nil, %v) = true, want false", m1) } if !Equal[map[int]int, map[int]int](nil, nil) { t.Error("Equal(nil, nil) = false, want true") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 17:05:56 UTC 2023 - 5.6K bytes - Viewed (0) -
pkg/proxy/ipvs/util/ipvs_test.go
Scheduler: "rr", Flags: 0x1, Timeout: 10800, }, equal: true, reason: "All fields equal", }, } for i := range Tests { equal := Tests[i].svcA.Equal(Tests[i].svcB) if equal != Tests[i].equal { t.Errorf("case: %d got %v, expected %v, reason: %s", i, equal, Tests[i].equal, Tests[i].reason) } } } func TestRealServerEqual(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 8K bytes - Viewed (0) -
test/literal2.go
// hexadecimal floats assert(equal(0x1p-2, 0.25)) assert(equal(0x2.p10, 2048.0)) assert(equal(0x1.Fp+0, 1.9375)) assert(equal(0x.8p-0, 0.5)) assert(equal(0x1FFFp-16, 0.1249847412109375)) assert(equal(0x1.fffffffffffffp1023, 1.7976931348623157e308)) assert(equal(0x1.fffffffffffffp1023i, complex(0, 1.7976931348623157e308))) assert(equal(0x_1p-2, 0.25)) assert(equal(0x2.p1_0, 2048.0)) assert(equal(0x1_0.Fp+0, 16.9375))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 19 22:45:09 UTC 2019 - 2.2K bytes - Viewed (0) -
pkg/config/analysis/analyzers/util/hosts_test.go
// wildcard, all namespaces scope g.Expect(NewScopedFqdn("*", "foo", "*")).To(Equal(ScopedFqdn("*/*"))) // wildcard sub domain, all namespaces scope g.Expect(NewScopedFqdn("*", "foo", "*.xyz.abc")).To(Equal(ScopedFqdn("*/*.xyz.abc"))) // external host, local scope g.Expect(NewScopedFqdn("foo", "foo", "xyz.abc")).To(Equal(ScopedFqdn("foo/xyz.abc"))) // external host, all namespaces scope
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 4.4K bytes - Viewed (0) -
pkg/volume/flexvolume/probe_test.go
} // Act events, err := prober.Probe() // Assert assert.Equal(t, 2, len(events)) assert.Equal(t, volume.ProbeAddOrUpdate, events[0].Op) assert.Equal(t, volume.ProbeAddOrUpdate, events[1].Op) assert.NoError(t, err) for i := 0; i < iterations-1; i++ { events, err = prober.Probe() assert.Equal(t, 0, len(events)) assert.NoError(t, err) } } func TestProberError(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 28 11:14:00 UTC 2023 - 10.5K bytes - Viewed (0) -
plugin/pkg/admission/podtolerationrestriction/admission_test.go
namespaceTolerations: []api.Toleration{{Key: "testKey", Operator: "Equal", Value: "testValue", Effect: "NoSchedule"}}, podTolerations: []api.Toleration{{Key: "testKey", Operator: "Equal", Value: "testValue1", Effect: "NoSchedule"}}, mergedTolerations: []api.Toleration{{Key: "testKey", Operator: "Equal", Value: "testValue", Effect: "NoSchedule"}, {Key: "testKey", Operator: "Equal", Value: "testValue1", Effect: "NoSchedule"}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 16K bytes - Viewed (0) -
src/crypto/ecdsa/equal_test.go
public := &private.PublicKey if !public.Equal(public) { t.Errorf("public key is not equal to itself: %v", public) } if !public.Equal(crypto.Signer(private).Public().(*ecdsa.PublicKey)) { t.Errorf("private.Public() is not Equal to public: %q", public) } if !private.Equal(private) { t.Errorf("private key is not equal to itself: %v", private) } enc, err := x509.MarshalPKCS8PrivateKey(private)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 05 18:05:10 UTC 2020 - 2.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/proxy/streamtunnel_test.go
remoteAddr: expectedRemoteAddr, }, } assert.Equal(t, expectedLocalAddr, tc.LocalAddr(), "LocalAddr() returns expected TCPAddr") assert.Equal(t, expectedRemoteAddr, tc.RemoteAddr(), "RemoteAddr() returns expected TCPAddr") // Connection nil, returns empty address tc.conn = nil assert.Equal(t, noopAddr{}, tc.LocalAddr(), "nil connection, LocalAddr() returns noopAddr")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 02:21:50 UTC 2024 - 22.7K bytes - Viewed (0) -
pkg/kubelet/server/stats/summary_windows_test.go
assert.NoError(err) assert.Equal(summary.Node.NodeName, "test-node") assert.Equal(summary.Node.StartTime, systemBootTime) assert.Equal(summary.Node.CPU, cgroupStatsMap["/"].cs.CPU) assert.Equal(summary.Node.Memory, cgroupStatsMap["/"].cs.Memory) assert.Equal(summary.Node.Network, cgroupStatsMap["/"].ns) assert.Equal(summary.Node.Fs, rootFsStats)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 4.4K bytes - Viewed (0) -
pkg/kubelet/kubelet_getters_test.go
exp = filepath.Join(root, "pods") assert.Equal(t, exp, got) got = kubelet.getPodLogsDir() assert.Equal(t, kubelet.podLogsDirectory, got) got = kubelet.getPluginsDir() exp = filepath.Join(root, "plugins") assert.Equal(t, exp, got) got = kubelet.getPluginsRegistrationDir() exp = filepath.Join(root, "plugins_registry") assert.Equal(t, exp, got) got = kubelet.getPluginDir("foobar")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 09 00:48:07 UTC 2024 - 3.8K bytes - Viewed (0)