- Sort Score
- Num 10 results
- Language All
Results 301 - 310 of 418 for 123 (0.01 seconds)
-
src/test/java/jcifs/smb/SmbTransportImplTest.java
SmbComNegotiateResponse smb1 = new SmbComNegotiateResponse(ctx); ServerData sd = smb1.getServerData(); sd.encryptionKey = new byte[] { 1, 2, 3 }; setField(transport, "negotiated", smb1); assertArrayEquals(new byte[] { 1, 2, 3 }, transport.getServerEncryptionKey()); // SMB2 negotiation never exposes key via this API setField(transport, "negotiated", new Smb2NegotiateResponse(cfg));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
src/bufio/scan_test.go
} if err := s.Err(); err != nil { t.Fatal(err) } } func TestEmptyTokens(t *testing.T) { testEmptyTokens(t, "1,2,3,", []string{"1", "2", "3", ""}) } func TestWithNoEmptyTokens(t *testing.T) { testEmptyTokens(t, "1,2,3", []string{"1", "2", "3"}) } func loopAtEOFSplit(data []byte, atEOF bool) (advance int, token []byte, err error) { if len(data) > 0 { return 1, data[:1], nil }
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Sep 22 16:22:42 GMT 2023 - 14.3K bytes - Click Count (0) -
docs/es/docs/advanced/stream-data.md
Si declaras un `response_class=StreamingResponse` en tu *path operation function*, puedes usar `yield` para enviar cada bloque de datos a su vez. {* ../../docs_src/stream_data/tutorial001_py310.py ln[1:23] hl[20,23] *} FastAPI entregará cada bloque de datos a `StreamingResponse` tal cual, no intentará convertirlo a JSON ni nada parecido. ### *path operation functions* no async { #non-async-path-operation-functions }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:12:26 GMT 2026 - 5.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java
.containsExactly(0, 1, 3, 6, 10, 15, 21) .inOrder(); } public void testAsListIterator() { PrimitiveIterator.OfInt intIterator = (PrimitiveIterator.OfInt) ImmutableIntArray.of(1, 2, 3).asList().iterator(); assertThat(intIterator.nextInt()).isEqualTo(1); assertThat(intIterator.nextInt()).isEqualTo(2); assertThat(intIterator.nextInt()).isEqualTo(3); assertThat(intIterator.hasNext()).isFalse();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 12 14:49:24 GMT 2025 - 20.6K bytes - Click Count (0) -
cmd/xl-storage_test.go
}{ // Cases which should pass the test. // passing in valid bucket names. {"lol", true}, {"1-this-is-valid", true}, {"1-this-too-is-valid-1", true}, {"this.works.too.1", true}, {"1234567", true}, {"123", true}, {"s3-eu-west-1.amazonaws.com", true}, {"ideas-are-more-powerful-than-guns", true}, {"testbucket", true}, {"1bucket", true}, {"bucket1", true}, {"$this-is-not-valid-too", true},Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 66K bytes - Click Count (0) -
src/test/java/jcifs/util/transport/TransportTest.java
// 4=error, 5=disconnecting, 6=disconnected/invalid int[] disconnectedStates = { 0, 4, 5, 6 }; int[] connectedStates = { 1, 2, 3 }; for (int state : disconnectedStates) { transport.setState(state); assertTrue(transport.isDisconnected(), "State " + state + " should be disconnected"); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.5K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacMacTest.java
} /** * Test method for {@link jcifs.pac.PacMac#expandNFold(byte[], int)}. */ @Test void testExpandNFold() { // Test basic functionality byte[] data = { 1, 2, 3 }; int outlen = 5; byte[] expanded = PacMac.expandNFold(data, outlen); assertNotNull(expanded); assertEquals(outlen, expanded.length);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 7.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Multimap.java
* So, using the multimap shown above as an example, the {@link #size} is {@code 3}, not {@code 2}, * and the {@link #values} collection is {@code [1, 2, 3]}, not {@code [[1, 2], [3]]}. For those * times when the first style is more useful, use the multimap's {@link #asMap} view (or create a * {@code Map<K, Collection<V>>} in the first place). * * <h3>Example</h3> *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 15K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/graph/TraverserTest.java
assertEqualCharNodes(result, "bfaecd"); } @Test public void forGraph_breadthFirst_infinite() { Iterable<Integer> result = Traverser.forGraph(fixedSuccessors(Iterables.cycle(1, 2, 3))).breadthFirst(0); assertThat(Iterables.limit(result, 4)).containsExactly(0, 1, 2, 3).inOrder(); } @Test public void forGraph_breadthFirst_diamond() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 17:09:51 GMT 2025 - 47.4K bytes - Click Count (0) -
docs/en/docs/advanced/stream-data.md
If you declare a `response_class=StreamingResponse` in your *path operation function*, you can use `yield` to send each chunk of data in turn. {* ../../docs_src/stream_data/tutorial001_py310.py ln[1:23] hl[20,23] *} FastAPI will give each chunk of data to the `StreamingResponse` as is, it won't try to convert it to JSON or anything similar. ### Non-async *path operation functions* { #non-async-path-operation-functions }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 5.4K bytes - Click Count (0)