Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestCopy (0.08 sec)

  1. src/cmd/go/internal/load/test.go

    	// that depends on ptest. And so on, up the dependency tree.
    	testCopy := map[*Package]*Package{preal: ptest}
    	for _, p := range PackageList([]*Package{pmain}) {
    		if p == preal {
    			continue
    		}
    		// Copy on write.
    		didSplit := p == pmain || p == pxtest || p == ptest
    		split := func() {
    			if didSplit {
    				return
    			}
    			didSplit = true
    			if testCopy[p] != nil {
    				panic("recompileForTest loop")
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        for (int i = 0; i < 100; i++) {
          Object o = new Object();
          bf.put(o);
          assertTrue(bf.mightContain(o));
          assertTrue(bf.apply(o));
        }
      }
    
      public void testCopy() {
        BloomFilter<String> original = BloomFilter.create(Funnels.unencodedCharsFunnel(), 100);
        BloomFilter<String> copy = original.copy();
        assertNotSame(original, copy);
        assertEquals(original, copy);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. src/reflect/all_test.go

    		ax := ValueOf(struct{ x []int }{test.orig}).Field(0)
    		shouldPanic("using unexported field", func() { Append(ax, e0...) })
    		shouldPanic("using unexported field", func() { AppendSlice(ax, e1) })
    	}
    }
    
    func TestCopy(t *testing.T) {
    	a := []int{1, 2, 3, 4, 10, 9, 8, 7}
    	b := []int{11, 22, 33, 44, 1010, 99, 88, 77, 66, 55, 44}
    	c := []int{11, 22, 33, 44, 1010, 99, 88, 77, 66, 55, 44}
    	for i := 0; i < len(b); i++ {
    		if b[i] != c[i] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top