- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 3,990 for cgoUse (0.15 sec)
-
src/net/http/response_test.go
{ "HTTP/1.0 200 OK\r\n" + "Connection: close\r\n" + "\r\n" + "Body here\n", Response{ Status: "200 OK", StatusCode: 200, Proto: "HTTP/1.0", ProtoMajor: 1, ProtoMinor: 0, Request: dummyReq("GET"), Header: Header{ "Connection": {"close"}, // TODO(rsc): Delete? }, Close: true, ContentLength: -1, }, "Body here\n",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 19:01:29 UTC 2024 - 23.6K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultPersistentDirectoryStoreTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 16:40:49 UTC 2024 - 5.9K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/IoActionsTest.groovy
then: noExceptionThrown() } def "can close a valid resource"() { def resource = Mock(Closeable) when: uncheckedClose(resource) then: 1 * resource.close() when: closeQuietly(resource) then: 1 * resource.close() } def "rethrows unchecked exception when closing resource"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 5.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt
val relay = edit(file, upstream, metadata, 1024) val source1 = relay.newSource() val source2 = relay.newSource() source1!!.close() source1.close() // Unnecessary. Shouldn't decrement the reference count. assertThat(relay.isClosed).isFalse() source2!!.close() assertThat(relay.isClosed).isTrue() assertFile(Relay.PREFIX_DIRTY, -1L, -1, null, null) } @Test fun racingReaders() {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 8.1K bytes - Viewed (0) -
src/runtime/race/testdata/issue12664_test.go
close(c) } }(issue12664_2) <-c } var issue12664_3 MyT = 0 func TestRaceIssue12664_3(t *testing.T) { c := make(chan struct{}) go func() { issue12664_3 = 1 close(c) }() var r MyT var i any = r issue12664_3 = i.(MyT) <-c } var issue12664_4 MyT = 0 func TestRaceIssue12664_4(t *testing.T) { c := make(chan struct{}) go func() { issue12664_4 = 1 close(c) }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 1.1K bytes - Viewed (0) -
src/net/rpc/client_test.go
return errors.New("shutdownCodec ReadResponseHeader") } func (c *shutdownCodec) Close() error { c.closed = true return nil } func TestCloseCodec(t *testing.T) { codec := &shutdownCodec{responded: make(chan int)} client := NewClientWithCodec(codec) <-codec.responded client.Close() if !codec.closed { t.Error("client.Close did not close codec") } } // Test that errors in gob shut down the connection. Issue 7689.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 1.7K bytes - Viewed (0) -
platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/result/TestOutputStoreSpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 6.1K bytes - Viewed (0) -
src/cmd/cgo/internal/testgodefs/testgodefs_test.go
hasGeneratedByComment := false for _, line := range strings.Split(strings.TrimSpace(string(out)), "\n") { cgoExe := "cgo" if runtime.GOOS == "windows" { cgoExe = "cgo.exe" } if !strings.HasPrefix(line, "// "+cgoExe+" -godefs") { continue } if want := "// " + cgoExe + " " + strings.Join(cmd.Args[3:], " "); line != want { t.Errorf("%s: got generated comment %q, want %q", fn, line, want) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 01:37:31 UTC 2023 - 2.9K bytes - Viewed (0) -
src/net/http/readrequest_test.go
ProtoMinor: 1, Header: Header{ "Server": []string{"foo"}, }, Close: false, ContentLength: 0, RequestURI: "*", }, noBodyStr, noTrailer, noError, }, // Connection: close. golang.org/issue/8261 { "GET / HTTP/1.1\r\nHost: issue8261.com\r\nConnection: close\r\n\r\n", &Request{ Method: "GET", URL: &url.URL{ Path: "/", },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 14 22:23:32 UTC 2024 - 10K bytes - Viewed (0) -
src/compress/gzip/example_test.go
if err != nil { log.Fatal(err) } if err := zw.Close(); err != nil { log.Fatal(err) } zr, err := gzip.NewReader(&buf) if err != nil { log.Fatal(err) } fmt.Printf("Name: %s\nComment: %s\nModTime: %s\n\n", zr.Name, zr.Comment, zr.ModTime.UTC()) if _, err := io.Copy(os.Stdout, zr); err != nil { log.Fatal(err) } if err := zr.Close(); err != nil { log.Fatal(err) } // Output:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 22 16:24:14 UTC 2022 - 4.8K bytes - Viewed (0)