Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for testAll (0.13 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/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)
  6. 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)
  7. pkg/url/url_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package url
    
    import (
    	"testing"
    
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestURL(t *testing.T) {
    	assert.Equal(t, BaseURL, "https://istio.io/", "base url should be equal")
    	assert.Equal(t, DocsURL, "https://istio.io/"+DocsVersion+"/docs/", "docs url should be equal")
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 04 11:12:37 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. pkg/config/analysis/analyzers/schema/validation_test.go

    				},
    				Origin: fakeOrigin{},
    			},
    		},
    	}
    	a := ValidationAnalyzer{s: testSchema}
    	a.Analyze(ctx)
    }
    
    func TestSchemaValidationWrapper(t *testing.T) {
    	testCol := gvk.VirtualService
    
    	m1 := &v1alpha3.VirtualService{}
    	m2 := &v1alpha3.VirtualService{}
    	m3 := &v1alpha3.VirtualService{}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. 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)
  10. android/guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        assertEquals(7, (int) newValue);
        assertEquals(7, (int) map.getInstance(TypeToken.of(Integer.class)));
    
        // Won't compile: map.putInstance(Double.class, new Long(42));
      }
    
      public void testNull() {
        assertThrows(
            NullPointerException.class,
            () -> map.putInstance((TypeToken<Integer>) null, Integer.valueOf(1)));
        map.putInstance(Integer.class, null);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top