Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for testAll (0.21 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/cmd/cover/testdata/test.go

    // Copyright 2013 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.
    
    // This program is processed by the cover command, and then testAll is called.
    // The test driver in main.go can then compare the coverage statistics with expectation.
    
    // The word LINE is replaced by the line number in this file. When the file is executed,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 4.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/internal/obj/riscv/testdata/testbranch/branch_test.go

    		{"BGTU", -1, 0, testBGTU, testGoBGTU, true},
    		{"BGTU", 1, 0, testBGTU, testGoBGTU, true},
    		{"BLE", 0, 1, testBLE, testGoBLE, true},
    		{"BLE", 0, 0, testBLE, testGoBLE, true},
    		{"BLE", 0, -1, testBLE, testGoBLE, false},
    		{"BLE", -1, 0, testBLE, testGoBLE, true},
    		{"BLE", 1, 0, testBLE, testGoBLE, false},
    		{"BLEU", 0, 1, testBLEU, testGoBLEU, true},
    		{"BLEU", 0, 0, testBLEU, testGoBLEU, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 28 21:56:43 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/riscv/testdata/testbranch/branch_test.s

    	RET
    
    // func testBGTZ(a int64) (r bool)
    TEXT ·testBGTZ(SB),NOSPLIT,$0-9
    	MOV	a+0(FP), X5
    	MOV	$1, X6
    	BGTZ	X5, b
    	MOV	$0, X6
    b:
    	MOV	X6, r+8(FP)
    	RET
    
    // func testBLE(a, b int64) (r bool)
    TEXT ·testBLE(SB),NOSPLIT,$0-17
    	MOV	a+0(FP), X5
    	MOV	b+8(FP), X6
    	MOV	$1, X7
    	BLE	X5, X6, b
    	MOV	$0, X7
    b:
    	MOV	X7, r+16(FP)
    	RET
    
    // func testBLEU(a, b int64) (r bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 28 21:56:43 UTC 2022
    - 2.4K bytes
    - Viewed (0)
Back to top