Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for testAll (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/log/log_test.go

    	}
    	SetOutput(os.Stderr)
    }
    
    func TestDefault(t *testing.T) {
    	if got := Default(); got != std {
    		t.Errorf("Default [%p] should be std [%p]", got, std)
    	}
    }
    
    func TestAll(t *testing.T) {
    	for _, testcase := range tests {
    		testPrint(t, testcase.flag, testcase.prefix, testcase.pattern, false)
    		testPrint(t, testcase.flag, testcase.prefix, testcase.pattern, true)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 20:04:37 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  8. 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)
  9. src/math/big/calibrate_test.go

    		karatsubaSqrThreshold = words - 1
    	}
    
    	var testval int64
    	for i := 0; i < nruns; i++ {
    		res := testing.Benchmark(func(b *testing.B) { benchmarkNatSqr(b, words) })
    		testval += res.NsPerOp()
    	}
    	testval /= int64(nruns)
    
    	basicSqrThreshold, karatsubaSqrThreshold = initBasicSqr, initKaratsubaSqr
    
    	return time.Duration(testval)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  10. test/fixedbugs/issue66066.go

    	}
    
    }
    
    //go:noinline
    func mul3(a uint32) uint64 {
    	return uint64(a * 3)
    }
    
    func testMul() {
    	got := mul3(1<<32 - 1)
    	want := uint64((1<<32-1)*3 - 2<<32)
    	if got != want {
    		fmt.Printf("testMul: got %x want %x\n", got, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 677 bytes
    - Viewed (0)
Back to top