Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 90 for testVol (1.51 sec)

  1. 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)
  2. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginDependenciesIntegrationTest.groovy

                import static org.junit.Assert.assertTrue;
    
                import org.junit.Test;
    
                public class Class1Test<T> {
                    @Test
                    public void testFoo() {
                        Class1 c = new Class1();
                        assertTrue(c.isFoo("foo"));
                    }
    
                    public boolean equals(Object arg) { return java.lang.Boolean.valueOf(true); }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_fuzz_chatty.txt

    import "testing"
    
    func Fuzz(f *testing.F) {
        f.Log("all good here")
        f.Fuzz(func(*testing.T, []byte) {})
    }
    
    -- chatty_with_test_fuzz_test.go --
    package chatty_with_test_fuzz
    
    import "testing"
    
    func TestFoo(t *testing.T) {
        t.Log("logged foo")
    }
    
    func Fuzz(f *testing.F) {
        f.Log("all good here")
        f.Fuzz(func(*testing.T, []byte) {})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/cover_test_pkgselect.txt

    go 1.18
    
    -- foo/foo.go --
    package foo
    
    func FooFunc() int {
    	return 42
    }
    func FooFunc2() int {
    	return 42
    }
    
    -- foo/foo_test.go --
    package foo
    
    import "testing"
    
    func TestFoo(t *testing.T) {
    	if FooFunc() != 42 {
    		t.Fatalf("bad")
    	}
    }
    
    -- bar/bar.go --
    package bar
    
    import "example/foo"
    
    func BarFunc() int {
    	return foo.FooFunc2()
    }
    
    -- bar/bar_test.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:50:58 UTC 2022
    - 1.3K 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/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)
  7. src/cmd/cgo/internal/test/cgo_test.go

    func Test45451(t *testing.T)                 { test45451(t) }
    func Test49633(t *testing.T)                 { test49633(t) }
    func TestAlign(t *testing.T)                 { testAlign(t) }
    func TestAtol(t *testing.T)                  { testAtol(t) }
    func TestBlocking(t *testing.T)              { testBlocking(t) }
    func TestBoolAlign(t *testing.T)             { testBoolAlign(t) }
    func TestCallGoWithString(t *testing.T)      { testCallGoWithString(t) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/testdata/ctl_test.go

    	s.step = 0
    	return 3
    }
    
    func testFlagOverwrite(t *testing.T) {
    	j := junk{}
    	if got := flagOverwrite_ssa(&j, ' '); got != 3 {
    		t.Errorf("flagOverwrite_ssa = %d, wanted 3", got)
    	}
    }
    
    func TestCtl(t *testing.T) {
    	testPhiControl(t)
    	testEmptyRange(t)
    
    	testSwitch(t)
    	testFallthrough(t)
    
    	testFlagOverwrite(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/go/testdata/script/cover_coverprofile_multipkg.txt

    	}
    	if M2Func() != 0 {
    		t.Fatalf("also bad!")
    	}
    }
    -- n/n.go --
    package n
    
    type N int
    -- onlytest/mumble_test.go --
    package onlytest
    
    import "testing"
    
    func TestFoo(t *testing.T) {
    	t.Logf("Whee\n")
    }
    -- x/x.go --
    package x
    
    func XFunc() int {
    	return 2 * 2
    }
    -- xinternal/i.go --
    package i
    
    func I() int { return 32 }
    -- xinternal/q/q.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 17:02:36 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top