Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 2,023 for segfault (0.13 sec)

  1. tests/test_ambiguous_params.py

        ):
    
            @app.get("/items/{item_id}/")
            async def get_item(item_id: Annotated[int, Path(default=1)]):
                pass  # pragma: nocover
    
        with pytest.raises(
            AssertionError,
            match=(
                "`Query` default value cannot be set in `Annotated` for 'item_id'. Set the"
                " default value with `=` instead."
            ),
        ):
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Dec 12 00:22:47 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. tests/test_invalid_sequence_param.py

            @app.get("/items/")
            def read_items(q: List[Item] = Query(default=None)):
                pass  # pragma: no cover
    
    
    def test_invalid_tuple():
        with pytest.raises(AssertionError):
            app = FastAPI()
    
            class Item(BaseModel):
                title: str
    
            @app.get("/items/")
            def read_items(q: Tuple[Item, Item] = Query(default=None)):
                pass  # pragma: no cover
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/ntlmssp/Type1Message.java

        }
    
        /**
         * Returns the default flags for a generic Type-1 message in the
         * current environment.
         * 
         * @return An <code>int</code> containing the default flags.
         */
        public static int getDefaultFlags() {
            return DEFAULT_FLAGS;
        }
    
        /**
         * Returns the default domain from the current environment.
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 8K bytes
    - Viewed (0)
  4. common/config/.golangci-format.yml

      # Can use regexp here: `generated.*`, regexp is applied on full path,
      # including the path prefix if one is set.
      # Default dirs are skipped independently of this option's value (see exclude-dirs-use-default).
      # "/" will be replaced by current OS file path separator to properly work on Windows.
      # Default: []
      exclude-dirs:
        - genfiles$
        - vendor$
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Apr 05 03:02:37 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java

        assertEquals(
            "getOrDefault(absent, default) should return default",
            v3(),
            getMap().getOrDefault(k3(), v3()));
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      @CollectionSize.Require(absent = ZERO)
      public void testGetOrDefault_presentNull() {
        initMapWithNullKey();
        assertEquals(
            "getOrDefault(null, default) should return the associated value",
            getValueForNullKey(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_configure_swagger_ui/test_tutorial003.py

            '"dom_id": "#swagger-ui"' in response.text
        ), "default configs should be preserved"
        assert "presets: [" in response.text, "default configs should be preserved"
        assert (
            "SwaggerUIBundle.presets.apis," in response.text
        ), "default configs should be preserved"
        assert (
            "SwaggerUIBundle.SwaggerUIStandalonePreset" in response.text
        ), "default configs should be preserved"
        assert (
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 19 19:54:04 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. cmd/admin-handlers-idp-config.go

    		subSys = madmin.IdentityLDAPSubSys
    	}
    
    	cfgName := mux.Vars(r)["name"]
    	cfgTarget := madmin.Default
    	if cfgName != "" {
    		cfgTarget = cfgName
    		if idpCfgType == madmin.LDAPIDPCfg && cfgName != madmin.Default {
    			// LDAP does not support multiple configurations. So cfgName must be
    			// empty or `madmin.Default`.
    			writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminConfigLDAPNonDefaultConfigName), r.URL)
    			return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. api/maven-api-meta/src/main/java/org/apache/maven/api/annotations/Config.java

    @Experimental
    @Documented
    @Retention(RetentionPolicy.CLASS)
    @Target(ElementType.FIELD)
    public @interface Config {
    
        Source source() default Source.USER_PROPERTIES;
    
        String type() default "java.lang.String";
    
        String defaultValue() default "";
    
        boolean readOnly() default false;
    
        enum Source {
            USER_PROPERTIES,
            MODEL
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Aug 22 14:47:43 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/plugin/annotations/Mojo.java

         */
        @Nonnull
        String name();
    
        /**
         * default phase to bind your mojo.
         * @return the default phase
         */
        @Nonnull
        String defaultPhase() default "";
    
        /**
         * does your mojo requires a project to be executed?
         * @return requires a project
         */
        boolean projectRequired() default true;
    
        /**
         * if the Mojo uses the Maven project and its subprojects.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Aug 29 18:21:40 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/ElementOrderTest.java

        assertThat(network.edges()).containsExactly("i", "e", "p").inOrder();
        assertThat(network.nodeOrder()).isEqualTo(ElementOrder.insertion()); // default
      }
    
      // The default ordering is INSERTION unless otherwise specified.
      @Test
      public void edgeOrder_default() {
        MutableNetwork<Integer, String> network = NetworkBuilder.directed().build();
    
        addEdges(network);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.1K bytes
    - Viewed (0)
Back to top