- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 43 for testAll (0.21 sec)
-
src/test/java/org/codelibs/core/collection/LruHashMapTest.java
import java.util.Iterator; import org.junit.Test; /** * @author taichi */ public class LruHashMapTest { /** * @throws Exception */ @Test public void testAll() throws Exception { final LruHashMap<String, String> lru = new LruHashMap<String, String>(3); lru.put("aaa", "111"); lru.put("bbb", "222"); lru.put("ccc", "333");
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.7K bytes - Viewed (0) -
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/internal/godebugs/godebugs_test.go
package godebugs_test import ( "internal/godebugs" "internal/testenv" "os" "os/exec" "path/filepath" "regexp" "runtime" "strings" "testing" ) func TestAll(t *testing.T) { testenv.MustHaveGoBuild(t) data, err := os.ReadFile("../../../doc/godebug.md") if err != nil { if os.IsNotExist(err) && (testenv.Builder() == "" || runtime.GOOS != "linux") { t.Skip(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 14:19:39 UTC 2024 - 2.3K bytes - Viewed (0) -
src/cmd/gofmt/long_test.go
} // otherwise, test all Go files under *root goroot := *root if goroot == "" { goroot = testenv.GOROOT(t) } filepath.WalkDir(goroot, handleFile) } func TestAll(t *testing.T) { if testing.Short() { return } if *ngo < 1 { *ngo = 1 // make sure test is run } if *verbose { fmt.Printf("running test using %d goroutines\n", *ngo) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 20:27:28 UTC 2023 - 3.8K 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) -
src/internal/reflectlite/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 Nov 16 19:26:08 UTC 2023 - 24.2K 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) -
tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir
// expected-error @+1 {{expected 1 or more operands}} %0 = "tf.ConcatV2"() : () -> tensor<?xf32> func.return %0 : tensor<?xf32> } // ----- // CHECK-LABEL: testAll func.func @testAll(%arg0: tensor<2x2xi1>, %arg1: tensor<i32>) -> tensor<i1> { %0 = "tf.All"(%arg0, %arg1) {keep_dims = false} : (tensor<2x2xi1>, tensor<i32>) -> tensor<i1> func.return %0 : tensor<i1> } // -----
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 23 14:40:35 UTC 2023 - 236.4K bytes - Viewed (0) -
pkg/controller/tainteviction/timed_workers_test.go
wg.Wait() lastVal := atomic.LoadInt32(&testVal) if lastVal != 5 { t.Errorf("Expected testVal = 5, got %v", lastVal) } } func TestExecuteDelayed(t *testing.T) { testVal := int32(0) wg := sync.WaitGroup{} wg.Add(5) queue := CreateWorkerQueue(func(ctx context.Context, fireAt time.Time, args *WorkArgs) error { atomic.AddInt32(&testVal, 1) wg.Done() return nil }) now := time.Now()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:23:56 UTC 2023 - 5.6K bytes - Viewed (0)