Search Options

Results per page
Sort
Preferred Languages
Advance

Results 601 - 610 of 2,527 for 2$ (0.02 sec)

  1. tests/test_tutorial/test_websockets/test_tutorial002_an.py

    
    def test_websocket_with_header_and_query():
        client = TestClient(app)
        with pytest.raises(WebSocketDisconnect):
            with client.websocket_connect("/items/2/ws?q=3&token=some-token") as websocket:
                message = "Message one"
                websocket.send_text(message)
                data = websocket.receive_text()
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java

                .add(SHORT_NAME, Optional.absent())
                .add(LONG_NAME, Optional.absent())
                .add(SHORT_NAME, Optional.of("2"))
                .add(SHORT_NAME, Optional.absent())
                .addValue(null)
                .add(SHORT_NAME, new int[] {1})
                .add(LONG_NAME, new int[] {2})
                .addValue(new int[] {3})
                .addValue(new int[] {})
                .addValue(null);
          }
        },
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt

        assertThat(client.connectionPool.connectionCount()).isEqualTo(1)
      }
    
      /**
       * This is an extraordinary test case. Here's what it's trying to simulate.
       * - 2 requests happen concurrently to a host that can be coalesced onto a single connection.
       * - Both request discover no existing connection. They both make a connection.
       * - The first request "wins the race".
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  4. internal/lsync/lrwmutex_test.go

    	go writer(rwm, numIterations, &activity, cdone)
    	var i int
    	for i = 0; i < numReaders/2; i++ {
    		go reader(rwm, numIterations, &activity, cdone)
    	}
    	go writer(rwm, numIterations, &activity, cdone)
    	for ; i < numReaders; i++ {
    		go reader(rwm, numIterations, &activity, cdone)
    	}
    	// Wait for the 2 writers and all readers to finish.
    	for i := 0; i < 2+numReaders; i++ {
    		<-cdone
    	}
    }
    
    // Borrowed from rwmutex_test.go
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Mar 05 04:57:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  5. compat/maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java

            assertTrue(target.merge(source));
            Versioning actualVersioning = target.getVersioning();
            assertEquals(2, actualVersioning.getSnapshotVersions().size());
            assertEquals(sv2, actualVersioning.getSnapshotVersions().get(0));
            assertEquals(sv3, actualVersioning.getSnapshotVersions().get(1));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  6. src/bytes/buffer_test.go

    		empty(t, "TestLargeByteWrites (2)", &buf, s, make([]byte, len(testString)/i))
    	}
    	check(t, "TestLargeByteWrites (3)", &buf, "")
    }
    
    func TestLargeStringReads(t *testing.T) {
    	var buf Buffer
    	for i := 3; i < 30; i += 3 {
    		s := fillString(t, "TestLargeReads (1)", &buf, "", 5, testString[:len(testString)/i])
    		empty(t, "TestLargeReads (2)", &buf, s, make([]byte, len(testString)))
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  7. cmd/data-usage-cache.go

    //msgp:marshal ignore dataUsageCacheV2 dataUsageCacheV3 dataUsageCacheV4 dataUsageCacheV5 dataUsageCacheV6 dataUsageCacheV7
    
    // dataUsageCacheV2 contains a cache of data usage entries version 2.
    type dataUsageCacheV2 struct {
    	Info  dataUsageCacheInfo
    	Cache map[string]dataUsageEntryV2
    }
    
    // dataUsageCacheV3 contains a cache of data usage entries version 3.
    type dataUsageCacheV3 struct {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/convert/BooleanConversionUtilTest.java

            assertEquals("2", Boolean.FALSE, BooleanConversionUtil.toBoolean(Integer.valueOf(0)));
            assertEquals("3", Boolean.FALSE, BooleanConversionUtil.toBoolean("0"));
            assertEquals("4", Boolean.TRUE, BooleanConversionUtil.toBoolean("1"));
            assertEquals("5", Boolean.TRUE, BooleanConversionUtil.toBoolean("2"));
            assertEquals("6", Boolean.TRUE, BooleanConversionUtil.toBoolean("true"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. okcurl/src/main/kotlin/okhttp3/curl/internal/-MainCommon.kt

      request.url(url)
    
      data?.let {
        request.method(requestMethod, it.toRequestBody(mediaType()))
      }
    
      for (header in headers.orEmpty()) {
        val parts = header.split(':', limit = 2)
        if (!isSpecialHeader(parts[0])) {
          request.header(parts[0], parts[1])
        }
      }
      referer?.let {
        request.header("Referer", it)
      }
      request.header("User-Agent", userAgent)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/math/DoubleMathRoundingBenchmark.java

      RoundingMode mode;
    
      @BeforeExperiment
      void setUp() {
        for (int i = 0; i < ARRAY_SIZE; i++) {
          doubleInIntRange[i] = randomDouble(Integer.SIZE - 2);
          doubleInLongRange[i] = randomDouble(Long.SIZE - 2);
          positiveDoubles[i] = randomPositiveDouble();
        }
      }
    
      @Benchmark
      int roundToInt(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.6K bytes
    - Viewed (0)
Back to top