- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 296 for Mark (0.05 seconds)
-
android/guava/src/com/google/common/io/ByteStreams.java
public int available() throws IOException { return (int) min(in.available(), left); } // it's okay to mark even if mark isn't supported, as reset won't work @Override public synchronized void mark(int readLimit) { in.mark(readLimit); mark = left; } @Override public int read() throws IOException { if (left == 0) { return -1; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 31.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbSessionTest.java
// The sessionSetup method would normally send authentication messages // Only mark the sessionSetup response as received, not the actual request/response doAnswer(invocation -> { ServerMessageBlock request = invocation.getArgument(0); ServerMessageBlock response = invocation.getArgument(1); // Only mark session setup responses as received, not our test requestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.6K bytes - Click Count (0) -
src/cmd/api/main_test.go
for _, id := range spec.Names { mark(id) } case *ast.TypeSpec: mark(spec.Name) } } } return true // look at specs case *ast.FuncDecl: if isDeprecated(n.Doc) { mark(n.Name) } return false case *ast.TypeSpec: if isDeprecated(n.Doc) { mark(n.Name) }Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Mon Mar 02 13:20:41 GMT 2026 - 31.4K bytes - Click Count (0) -
impl/maven-cli/src/test/resources/mavenHome/conf/maven-user.properties
# # Comma-separated list of files to include. # Each item may be enclosed in quotes to gracefully include spaces. Items are trimmed before being loaded. # If the first character of an item is a question mark, the load will silently fail if the file does not exist. ${includes} = ?"${maven.user.conf}/maven-user.properties", \Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Jul 03 14:18:26 GMT 2025 - 1.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/ByteStreamsTest.java
assertThat(expected).hasMessageThat().isEqualTo("Mark not set"); } public void testLimit_markNotSupported() { InputStream lin = ByteStreams.limit(new UnmarkableInputStream(), 2); IOException expected = assertThrows(IOException.class, lin::reset); assertThat(expected).hasMessageThat().isEqualTo("Mark not supported"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 22K bytes - Click Count (0) -
docs/en/docs/advanced/async-tests.md
Let's look at how we can make that work. ## pytest.mark.anyio { #pytest-mark-anyio }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 3.8K bytes - Click Count (0) -
internal/config/lambda/target/lazyinit.go
} return nil } func (l *lazyInit) doSlow(f func() error) error { l.m.Lock() defer l.m.Unlock() if atomic.LoadUint32(&l.done) == 0 { if err := f(); err != nil { return err } // Mark as done only when f() is successful atomic.StoreUint32(&l.done, 1) } return nil
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Mar 07 16:12:41 GMT 2023 - 1.3K bytes - Click Count (0) -
impl/maven-cli/src/test/resources/mavenHome/conf/maven-system.properties
# Comma-separated list of files to include. # Each item may be enclosed in quotes to gracefully include spaces. Items are trimmed before being loaded. # If the first character of an item is a question mark, the load will silently fail if the file does not exist. ${includes} = ?"${maven.user.conf}/maven-system.properties", \ ?"${maven.project.conf}/maven-system.properties" # # Settings #Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Jul 03 14:18:26 GMT 2025 - 2.8K bytes - Click Count (0) -
docs/en/docs/management.md
Some of the tasks they can perform include: * Adding labels to PRs. * Editing PR titles. * Adding commits on top of PRs to tweak them. * Mark answers in GitHub Discussions questions, etc. * Merge some specific types of PRs. You can see the current team members in [FastAPI People - Team](./fastapi-people.md#team).
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 1.5K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/async-tests.md
你已經看過如何使用提供的 `TestClient` 來測試你的 FastAPI 應用。到目前為止,你只看到如何撰寫同步測試,沒有使用 `async` 函式。 在測試中能使用非同步函式會很有用,例如當你以非同步方式查詢資料庫時。想像你想測試發送請求到 FastAPI 應用,然後在使用非同步資料庫函式庫時,驗證後端是否成功把正確資料寫入資料庫。 來看看怎麼做。 ## pytest.mark.anyio { #pytest-mark-anyio } 若要在測試中呼叫非同步函式,測試函式本身也必須是非同步的。AnyIO 為此提供了一個好用的外掛,讓我們可以標示某些測試函式以非同步方式執行。 ## HTTPX { #httpx } 即使你的 FastAPI 應用使用一般的 `def` 函式而非 `async def`,它在底層仍然是個 `async` 應用。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 3.5K bytes - Click Count (0)