- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for testAll (0.42 sec)
-
src/internal/concurrent/hashtriemap_test.go
expectPresent(t, s, i)(m.Load(s)) } } }) t.Run("All", func(t *testing.T) { m := newMap() testAll(t, m, testDataMap(testData[:]), func(_ string, _ int) bool { return true }) }) t.Run("AllDelete", func(t *testing.T) { m := newMap() testAll(t, m, testDataMap(testData[:]), func(s string, i int) bool { expectDeleted(t, s, i)(m.CompareAndDelete(s, i)) return true })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 16:01:55 UTC 2024 - 9.3K bytes - Viewed (0) -
src/maps/iter_test.go
// Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package maps import ( "slices" "testing" ) func TestAll(t *testing.T) { for size := 0; size < 10; size++ { m := make(map[int]int) for i := range size { m[i] = i } cnt := 0 for i, v := range All(m) { v1, ok := m[i] if !ok || v != v1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:44:19 UTC 2024 - 1.9K bytes - Viewed (0) -
src/slices/iter_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package slices_test import ( "iter" "math/rand/v2" . "slices" "testing" ) func TestAll(t *testing.T) { for size := 0; size < 10; size++ { var s []int for i := range size { s = append(s, i) } ei, ev := 0, 0 cnt := 0 for i, v := range All(s) { if i != ei || v != ev {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:28:50 UTC 2024 - 5.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
list.add("cool"); assertFalse(Iterators.any(list.iterator(), predicate)); list.add("pants"); assertTrue(Iterators.any(list.iterator(), predicate)); } public void testAll() { List<String> list = Lists.newArrayList(); Predicate<String> predicate = Predicates.equalTo("cool"); assertTrue(Iterators.all(list.iterator(), predicate)); list.add("cool");
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 03 13:01:51 UTC 2024 - 55.7K bytes - Viewed (0) -
pilot/pkg/networking/util/util_test.go
for i := 0; i < b.N; i++ { cpy := CloneClusterLoadAssignment(testCla) _ = cpy } } func TestCloneClusterLoadAssignment(t *testing.T) { cloned := CloneClusterLoadAssignment(testCla) cloned2 := CloneClusterLoadAssignment(testCla) if !cmp.Equal(testCla, cloned, protocmp.Transform()) { t.Fatalf("expected %v to be the same as %v", testCla, cloned) } cloned.ClusterName = "foo"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 01:17:58 UTC 2024 - 40K bytes - Viewed (0) -
src/net/http/cookiejar/jar_test.go
var tNow = time.Date(2013, 1, 1, 12, 0, 0, 0, time.UTC) // testPSL implements PublicSuffixList with just two rules: "co.uk" // and the default rule "*". // The implementation has two intentional bugs: // // PublicSuffix("www.buggy.psl") == "xy" // PublicSuffix("www2.buggy.psl") == "com" type testPSL struct{} func (testPSL) String() string { return "testPSL" } func (testPSL) PublicSuffix(d string) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 34K bytes - Viewed (0) -
src/cmd/cgo/internal/swig/swig_test.go
"path/filepath" "regexp" "strconv" "strings" "sync" "testing" ) func TestStdio(t *testing.T) { testenv.MustHaveCGO(t) mustHaveSwig(t) run(t, "testdata/stdio", false) } func TestCall(t *testing.T) { testenv.MustHaveCGO(t) mustHaveSwig(t) mustHaveCxx(t) run(t, "testdata/callback", false, "Call") t.Run("lto", func(t *testing.T) { run(t, "testdata/callback", true, "Call") }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 12:38:14 UTC 2024 - 4K bytes - Viewed (0) -
src/syscall/js/js_test.go
} if js.Undefined().IsNull() { t.Errorf("undefined is null") } if dummys.Set("test", js.Undefined()); !dummys.Get("test").IsUndefined() { t.Errorf("could not set undefined") } } func TestNull(t *testing.T) { if !js.Null().IsNull() { t.Errorf("null is not null") } if !js.Null().Equal(js.Null()) { t.Errorf("null is not equal to null") } if dummys.IsNull() { t.Errorf("object is null")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 17.7K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_container_test.go
// Configured and works as expected t.Run("PreStop-CMDExec", func(t *testing.T) { ctx := context.Background() testContainer.Lifecycle = cmdLifeCycle _ = m.killContainer(ctx, testPod, cID, "foo", "testKill", "", &gracePeriod, nil) if fakeRunner.Cmd[0] != cmdLifeCycle.PreStop.Exec.Command[0] { t.Errorf("CMD Prestop hook was not invoked") } }) // Configured and working HTTP hook
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 28K bytes - Viewed (0) -
src/reflect/all_test.go
func TestMapSetNil(t *testing.T) { m := make(map[string]int) vm := ValueOf(&m) vm.Elem().Set(Zero(vm.Elem().Type())) if m != nil { t.Errorf("got non-nil (%p), want nil", m) } } func TestAll(t *testing.T) { testType(t, 1, TypeOf((int8)(0)), "int8") testType(t, 2, TypeOf((*int8)(nil)).Elem(), "int8") typ := TypeOf((*struct { c chan *int32 d float32 })(nil))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)