Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,027 for IsSkip (0.12 sec)

  1. guava/src/com/google/common/io/LittleEndianDataInputStream.java

       */
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      public char readChar() throws IOException {
        return (char) readUnsignedShort();
      }
    
      @CanIgnoreReturnValue // to skip a byte
      @Override
      public byte readByte() throws IOException {
        return (byte) readUnsignedByte();
      }
    
      @CanIgnoreReturnValue // to skip a byte
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_query_params/test_tutorial006.py

        assert response.status_code == 200
        assert response.json() == {
            "item_id": "foo",
            "needy": "very",
            "skip": 0,
            "limit": None,
        }
    
    
    def test_foo_no_needy(client: TestClient):
        response = client.get("/items/foo?skip=a&limit=b")
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. docs_src/dependencies/tutorial001_02_an_py310.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    async def common_parameters(q: str | None = None, skip: int = 0, limit: int = 100):
        return {"q": q, "skip": skip, "limit": limit}
    
    
    CommonsDep = Annotated[dict, Depends(common_parameters)]
    
    
    @app.get("/items/")
    async def read_items(commons: CommonsDep):
        return commons
    
    
    @app.get("/users/")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 447 bytes
    - Viewed (0)
  4. tests/test_tutorial/test_dependencies/test_tutorial004_an_py39.py

            ),
            (
                "/items?q=foo&skip=1",
                200,
                {"items": [{"item_name": "Bar"}, {"item_name": "Baz"}], "q": "foo"},
            ),
            (
                "/items?q=bar&limit=2",
                200,
                {"items": [{"item_name": "Foo"}, {"item_name": "Bar"}], "q": "bar"},
            ),
            (
                "/items?q=bar&skip=1&limit=1",
                200,
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  5. pkg/fuzz/util.go

    	f.Fuzz(func(t *testing.T, data []byte) {
    		defer Finalize()
    		fg := New(t, data)
    		ff(fg)
    	})
    }
    
    // Finalize works around an issue in the oss-fuzz logic that doesn't allow using Skip()
    // Instead, we send a panic which we handle and treat as skip.
    // https://github.com/AdamKorcz/go-118-fuzz-build/issues/6
    func Finalize() {
    	if r := recover(); r != nil {
    		if s, ok := r.(string); ok {
    			if strings.HasPrefix(s, panicPrefix) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 30 15:31:14 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/build_plugin_reproducible.txt

    [!buildmode:plugin] skip
    [short] skip
    [!cgo] skip '-buildmode=plugin requires external linking'
    
    go build -trimpath -buildvcs=false -buildmode=plugin -o a.so main.go
    go build -trimpath -buildvcs=false -buildmode=plugin -o b.so main.go
    cmp -q a.so b.so
    
    -- main.go --
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:07:03 UTC 2024
    - 296 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/list_cgo_compiled_importmap.txt

    # ImportMap field when a runtime/cgo variant (such as a test variant)
    # will be used.
    
    [short] skip  # -compiled can be slow (because it compiles things)
    [!cgo] skip
    [GOOS:darwin] skip # net package does not import "C" on Darwin
    [GOOS:windows] skip # net package does not import "C" on Windows
    [GOOS:plan9] skip # net package does not import "C" on Plan 9
    
    env CGO_ENABLED=1
    env GOFLAGS=-tags=netcgo  # Force net to use cgo
    
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 22:26:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/build_gcflags.txt

    env GO111MODULE=off
    
    # Test that the user can override default code generation flags.
    
    [compiler:gccgo] skip  # gccgo does not use -gcflags
    [!cgo] skip
    [!GOOS:linux] skip  # test only works if c-archive implies -shared
    [short] skip
    
    env GOCACHE=$WORK/gocache  # Looking for compile commands, so need a clean cache.
    go build -x -n -buildmode=c-archive -gcflags=all=-shared=false ./override.go
    stderr '^.*/compile (.* )?-shared (.* )?-shared=false'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 541 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/mod_permissions.txt

    # Regression test for golang.org/issue/34634: permissions for the go.sum and
    # go.mod files should be preserved when overwriting them.
    
    env GO111MODULE=on
    [short] skip
    
    # Skip platforms that do not have Unix-style file permissions.
    [GOOS:windows] skip
    [GOOS:plan9] skip
    
    chmod 0640 go.mod
    chmod 0604 go.sum
    go mod edit -module=golang.org/issue/34634
    
    go get
    cmp go.mod go.mod.want
    cmp go.sum go.sum.want
    
    go run .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  10. docs_src/dependencies/tutorial001_an_py310.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    async def common_parameters(q: str | None = None, skip: int = 0, limit: int = 100):
        return {"q": q, "skip": skip, "limit": limit}
    
    
    @app.get("/items/")
    async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
        return commons
    
    
    @app.get("/users/")
    async def read_users(commons: Annotated[dict, Depends(common_parameters)]):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 454 bytes
    - Viewed (0)
Back to top