- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for testCopy3 (0.21 sec)
-
src/cmd/compile/internal/test/testdata/gen/copyGen.go
fmt.Fprintf(w, " }\n") fmt.Fprintf(w, "}\n") } // boilerplate at end fmt.Fprintf(w, "func TestCopy(t *testing.T) {\n") for _, s := range sizes { fmt.Fprintf(w, " testCopy%d(t)\n", s) } for _, s := range usizes { fmt.Fprintf(w, " testUnalignedCopy%d(t)\n", s) } fmt.Fprintf(w, "}\n") // gofmt result b := w.Bytes()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 3.6K bytes - Viewed (0) -
platforms/jvm/plugins-jvm-test-suite/src/integTest/groovy/org/gradle/testing/testsuites/TestSuitesIntegrationTest.groovy
def testImplHolder = configurations.create("uasdf") def testCopy = configurations.testImplementation.copy() configurations.add(testCopy) testImplHolder.extendsFrom(testCopy) task assertCopyCanBeResolved { def resolved = testImplHolder doLast {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Sep 13 20:36:32 UTC 2023 - 35.8K bytes - Viewed (0) -
src/io/io_test.go
r, w := zeroErrReader{err: er}, errWriter{err: ew} n, err := Copy(w, r) if n != 0 || err != ew { t.Errorf("Copy(zeroErrReader, errWriter) = %d, %v; want 0, writeError", n, err) } } func TestCopyN(t *testing.T) { rb := new(Buffer) wb := new(Buffer) rb.WriteString("hello, world.") CopyN(wb, rb, 5) if wb.String() != "hello" { t.Errorf("CopyN did not work properly") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:04:41 UTC 2023 - 18.9K bytes - Viewed (0) -
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) -
src/maps/maps_test.go
} } func TestCloneNil(t *testing.T) { var m1 map[string]int mc := Clone(m1) if mc != nil { t.Errorf("Clone(%v) = %v, want %v", m1, mc, m1) } } func TestCopy(t *testing.T) { mc := Clone(m1) Copy(mc, mc) if !Equal(mc, m1) { t.Errorf("Copy(%v, %v) = %v, want %v", m1, m1, mc, m1) } Copy(mc, map[int]int{16: 32})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 17:05:56 UTC 2023 - 5.6K bytes - Viewed (0) -
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) -
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)