Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 150 for ptrval (0.12 sec)

  1. docs_src/dependencies/tutorial008d_an.py

            raise
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id == "portal-gun":
            raise InternalError(
                f"The portal gun is too dangerous to be owned by {username}"
            )
        if item_id != "plumbus":
            raise HTTPException(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 744 bytes
    - Viewed (0)
  2. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/use/DeployedPortalIntegrationSpec.groovy

                }
            """
    
            then:
            succeeds("sub:helloWorld")
    
            and:
            output.contains("Hello World!")
    
        }
    
        def "can resolve and apply a plugin from portal"() {
            when:
            buildScript """
                plugins {
                    id "$HELLO_WORLD_PLUGIN_ID" version "$HELLO_WORLD_PLUGIN_VERSION"
                }
            """
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  3. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/ResolvingFromSingleCustomPluginRepositorySpec.groovy

            then:
            output.contains("from plugin")
        }
    
        def "Does not fall through to Plugin Portal if custom repo is defined"() {
            given:
            publishTestPlugin(MAVEN)
            buildScript """
                plugins {
                    id "org.gradle.hello-world" version "0.2" //this exists in the plugin portal
                }
            """
    
            and:
            useCustomRepository(PathType.ABSOLUTE)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:30:55 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/dumper.go

    		p.printf("*")
    		// Fields may share type expressions, and declarations
    		// may share the same group - use ptrmap to keep track
    		// of nodes that have been printed already.
    		if ptr, ok := x.Interface().(Node); ok {
    			if line, exists := p.ptrmap[ptr]; exists {
    				p.printf("(Node @ %d)", line)
    				return
    			}
    			p.ptrmap[ptr] = p.line
    			n = ptr
    		}
    		p.dump(x.Elem(), n)
    
    	case reflect.Slice:
    		if x.IsNil() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 08 17:32:14 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  5. docs_src/dependencies/tutorial008c_an.py

            print("Oops, we didn't raise again, Britney 😱")
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id == "portal-gun":
            raise InternalError(
                f"The portal gun is too dangerous to be owned by {username}"
            )
        if item_id != "plumbus":
            raise HTTPException(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 710 bytes
    - Viewed (0)
  6. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/ResolvingFromMultipleCustomPluginRepositorySpec.groovy

            repoType << [IVY, MAVEN]
        }
    
        def "Does not fall through to plugin portal if custom #repoType repos are defined"(String repoType) {
            given:
            publishPlugins(repoType)
            buildScript """
                plugins {
                    id "org.gradle.hello-world" version "0.2" //exits in the plugin portal
                }
            """
            use(repoA, repoB)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:30:55 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_dependencies/test_tutorial008c_an_py39.py

        with pytest.raises(FastAPIError) as exc_info:
            client.get("/items/portal-gun")
        assert "No response object was returned" in exc_info.value.args[0]
    
    
    @needs_py39
    def test_internal_server_error():
        from docs_src.dependencies.tutorial008c_an_py39 import app
    
        client = TestClient(app, raise_server_exceptions=False)
        response = client.get("/items/portal-gun")
        assert response.status_code == 500, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  8. common-protos/k8s.io/apimachinery/pkg/util/intstr/generated.proto

    //
    // +protobuf=true
    // +protobuf.options.(gogoproto.goproto_stringer)=false
    // +k8s:openapi-gen=true
    message IntOrString {
      optional int64 type = 1;
    
      optional int32 intVal = 2;
    
      optional string strVal = 3;
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. docs_src/separate_openapi_schemas/tutorial002.py

    
    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> List[Item]:
        return [
            Item(
                name="Portal Gun",
                description="Device to travel through the multi-rick-verse",
            ),
            Item(name="Plumbus"),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 524 bytes
    - Viewed (0)
  10. docs_src/response_model/tutorial001_py39.py

    @app.post("/items/", response_model=Item)
    async def create_item(item: Item) -> Any:
        return item
    
    
    @app.get("/items/", response_model=list[Item])
    async def read_items() -> Any:
        return [
            {"name": "Portal Gun", "price": 42.0},
            {"name": "Plumbus", "price": 32.0},
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Jan 07 13:45:48 UTC 2023
    - 556 bytes
    - Viewed (0)
Back to top