- Sort Score
- Num 10 results
- Language All
Results 291 - 300 of 1,160 for cases (0.02 seconds)
-
guava-tests/test/com/google/common/math/MathTesting.java
// Add boundary values manually to avoid over/under flow (this covers 2^N for 0 and 31). intValues.add(Integer.MAX_VALUE - 1, Integer.MAX_VALUE); // Add values up to 40. This covers cases like "square of a prime" and such. for (int i = 1; i <= 40; i++) { intValues.add(i); } // Now add values near 2^N for lots of values of N. for (int exponent : asList(2, 3, 4, 9, 15, 16, 17, 24, 25, 30)) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 9.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java
lock.encode(buffer, 0); assertEquals(0x11, SMBUtil.readInt4(buffer, 16)); } } @Nested @DisplayName("Edge Cases and Boundary Tests") class EdgeCaseTests { @Test @DisplayName("Should handle encoding at buffer boundary") void testEncodingAtBufferBoundary() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/stream-data.md
# 串流資料 { #stream-data } 如果你要串流可用 JSON 結構化的資料,應該[串流 JSON Lines](../tutorial/stream-json-lines.md)。 但如果你想串流純二進位資料或字串,以下是做法。 /// info 已在 FastAPI 0.134.0 新增。 /// ## 使用情境 { #use-cases } 當你想串流純字串時可以用這個機制,例如直接轉發來自 AI LLM 服務的輸出。 你也可以用它來串流大型二進位檔案,邊讀邊將每個區塊(chunk)串流出去,而不必一次把整個檔案載入記憶體。 你也可以用同樣方式串流視訊或音訊,甚至可以在處理的同時即時產生並傳送。 ## 使用 `yield` 的 `StreamingResponse` { #a-streamingresponse-with-yield }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:33:04 GMT 2026 - 4.9K bytes - Click Count (0) -
android/guava/src/com/google/common/escape/Escapers.java
return new Builder(); } /** * A builder for simple, fast escapers. * * <p>Typically an escaper needs to deal with the escaping of high valued characters or code * points. In these cases it is necessary to extend either {@link ArrayBasedCharEscaper} or {@link * ArrayBasedUnicodeEscaper} to provide the desired behavior. However this builder is suitable for
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 6.9K bytes - Click Count (0) -
android/guava/src/com/google/common/eventbus/Dispatcher.java
// that simply loops through the subscribers and dispatches the event to each would actually // probably provide a stronger order guarantee, though that order would obviously be different // in some cases. /** Global event queue. */ private final ConcurrentLinkedQueue<EventWithSubscriber> queue = new ConcurrentLinkedQueue<>(); @Override void dispatch(Object event, Iterator<Subscriber> subscribers) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 7.4K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ExecutionList.java
* execute. If execution has already begun, the listener is executed immediately. * * <p>When selecting an executor, note that {@code directExecutor} is dangerous in some cases. See * the discussion in the {@link ListenableFuture#addListener ListenableFuture.addListener} * documentation. */ public void add(Runnable runnable, Executor executor) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 10 11:51:21 GMT 2026 - 6.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java
import com.google.common.testing.NullPointerTester; import java.util.Objects; import junit.framework.TestCase; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Test cases for {@link Table} read operations. * * @author Jared Levy */ @GwtCompatible @NullMarked public abstract class AbstractTableReadTest<C extends @Nullable Character> extends TestCase {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 6.6K bytes - Click Count (0) -
cmd/warm-backend-gcs.go
switch reason { case "required": // Anonymous users does not have storage.xyz access to project 123. fallthrough case "keyInvalid": fallthrough case "forbidden": err = PrefixAccessDenied{ Bucket: bucket, Object: object, } case "invalid": err = BucketNameInvalid{ Bucket: bucket, } case "notFound": if object != "" {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Mar 30 00:56:02 GMT 2025 - 6.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
* test case failure. Only the first failure is recorded; subsequent calls to this method from * within the same test have no effect. */ final void threadRecordFailure(Throwable t) { threadFailure.compareAndSet(null, t); } /** * Extra checks that get done for all test cases. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 8.8K bytes - Click Count (0) -
internal/s3select/sql/aggregation.go
// Stores if at least one record has been seen seen bool } func newAggVal(fn FuncName) *aggVal { switch fn { case aggFnAvg, aggFnSum: return &aggVal{runningSum: FromFloat(0)} case aggFnMin: return &aggVal{runningMin: FromInt(0)} case aggFnMax: return &aggVal{runningMax: FromInt(0)} default: return &aggVal{} } }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sat Dec 23 07:19:11 GMT 2023 - 7.9K bytes - Click Count (0)