Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testAll (0.11 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top