Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 421 for listFn (0.04 seconds)

  1. tests/test_tutorial/test_response_change_status_code/test_tutorial001.py

    client = TestClient(app)
    
    
    def test_path_operation():
        response = client.put("/get-or-create-task/foo")
        print(response.content)
        assert response.status_code == 200, response.text
        assert response.json() == "Listen to the Bar Fighters"
        response = client.put("/get-or-create-task/bar")
        assert response.status_code == 201, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 526 bytes
    - Click Count (0)
  2. internal/deadlineconn/deadlineconn_test.go

    	"fmt"
    	"io"
    	"net"
    	"sync"
    	"testing"
    	"time"
    )
    
    // Test deadlineconn handles read timeout properly by reading two messages beyond deadline.
    func TestBuffConnReadTimeout(t *testing.T) {
    	l, err := net.Listen("tcp", "localhost:0")
    	if err != nil {
    		t.Fatalf("unable to create listener. %v", err)
    	}
    	defer l.Close()
    	serverAddr := l.Addr().String()
    
    	tcpListener, ok := l.(*net.TCPListener)
    	if !ok {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Nov 11 17:15:17 GMT 2024
    - 4.8K bytes
    - Click Count (0)
  3. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/PublicApi.kt

            "org/gradle/util/**", // contains Path that clashes with `org.gradle.api.model.Path` imported above. This line should not appear before "org/gradle/api/**"
        )
    
        val excludes = listOf("**/internal/**")
    
        private val includePackagePatterns: List<Pattern> by lazy {
            includes.map {
                if (it.endsWith("/**")) {
                    Pattern.compile(it.substring(0, it.length - 3).replace("/", "\\.") + "(\\..+)?")
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Jun 12 23:20:08 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  4. build-logic-commons/basics/src/test/kotlin/gradlebuild/basics/tasks/PackageListGeneratorIntegrationTest.kt

        }
    
        @Test
        fun `generates a curated list of package prefixes from directories`() {
            assertEquals(EXPECTED_PACKAGE_LIST, getRelocatedPackages(someClasses()))
        }
    
        @Test
        fun `generates a curated list of package prefixes from jars`() {
            assertEquals(EXPECTED_PACKAGE_LIST, getRelocatedPackages(aJar(someClasses())))
        }
    
        @Test
        fun `package list excludes default package`() {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Mar 25 08:50:34 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/CookiesTest.kt

                object : CookieManager() {
                  override fun get(
                    uri: URI,
                    requestHeaders: Map<String, List<String>>,
                  ) = mapOf(
                    "COOKIE" to listOf("Bar=bar"),
                    "cooKIE2" to listOf("Baz=baz"),
                  )
                },
              ),
            ).build()
        server.enqueue(MockResponse())
        get(server.url("/"))
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 13K bytes
    - Click Count (0)
  6. cmd/server-main.go

    			}
    		}
    	})
    }
    
    // Return the list of address that MinIO server needs to listen on:
    //   - Returning 127.0.0.1 is necessary so Console will be able to send
    //     requests to the local S3 API.
    //   - The returned List needs to be deduplicated as well.
    func getServerListenAddrs() []string {
    	// Use a string set to avoid duplication
    	addrs := set.NewStringSet()
    	// Listen on local interface to receive requests from Console
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue May 27 15:18:36 GMT 2025
    - 35.9K bytes
    - Click Count (4)
  7. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

                }
                val smallElementAggregateFunction: (List<PerformanceTestDuration>) -> List<PerformanceTestDuration> = { it }
    
                val buckets: List<List<PerformanceTestDuration>> =
                    splitIntoBuckets(
                        list,
                        toIntFunction,
                        largeElementSplitFunction,
                        smallElementAggregateFunction,
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Jul 10 02:18:03 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

              issuer = (it[3] as Pair<*, *>).second as List<List<AttributeTypeAndValue>>,
              validity = it[4] as Validity,
              subject = (it[5] as Pair<*, *>).second as List<List<AttributeTypeAndValue>>,
              subjectPublicKeyInfo = it[6] as SubjectPublicKeyInfo,
              issuerUniqueID = it[7] as BitString?,
              subjectUniqueID = it[8] as BitString?,
              extensions = it[9] as List<Extension>,
            )
          },
        )
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 13.6K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt

        // Make sure we have enough connection options to permit retries.
        dnsResults =
          listOf(
            localhostIpv4,
            localhostIpv6,
            TestUtil.UNREACHABLE_ADDRESS_IPV4.address,
          )
        serverIpv4.protocols = listOf(Protocol.H2_PRIOR_KNOWLEDGE)
        serverIpv6.protocols = listOf(Protocol.H2_PRIOR_KNOWLEDGE)
    
        // Yield the first IP address so the second IP address completes first.
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  10. docs/auditlog/auditlog-echo.go

    package main
    
    import (
    	"bytes"
    	"encoding/json"
    	"flag"
    	"fmt"
    	"io"
    	"log"
    	"net/http"
    )
    
    var port int
    
    func init() {
    	flag.IntVar(&port, "port", 8080, "Port to listen on")
    }
    
    func mainHandler(w http.ResponseWriter, r *http.Request) {
    	body, err := io.ReadAll(r.Body)
    	defer r.Body.Close()
    	if err != nil {
    		log.Printf("Error reading request body: %v", err)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 1.5K bytes
    - Click Count (0)
Back to Top