Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for test_invalid (0.44 sec)

  1. .cm/plugins/filters/byCodeowner/ignore/index.js

    const REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/
    const REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/
    const REGEX_SPLITALL_CRLF = /\r?\n/g
    // /foo,
    // ./foo,
    // ../foo,
    // .
    // ..
    const REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/
    
    const SLASH = '/'
    
    // Do not use ternary expression here, since "istanbul ignore next" is buggy
    let TMP_KEY_IGNORE = 'node-ignore'
    /* istanbul ignore else */
    JavaScript
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  2. tests/test_response_model_as_return_annotation.py

        response = client.get("/no_response_model-annotation_json_response_class")
        assert response.status_code == 200, response.text
        assert response.json() == {"foo": "bar"}
    
    
    def test_invalid_response_model_field():
        app = FastAPI()
        with pytest.raises(FastAPIError) as e:
    
            @app.get("/")
            def read_root() -> Union[Response, None]:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Aug 14 09:49:57 GMT 2023
    - 47.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/net/InternetDomainNameTest.java

      public void testValid() {
        for (String name : VALID_NAME) {
          InternetDomainName unused = InternetDomainName.from(name);
        }
      }
    
      public void testInvalid() {
        for (String name : INVALID_NAME) {
          try {
            InternetDomainName.from(name);
            fail("Should have been invalid: '" + name + "'");
          } catch (IllegalArgumentException expected) {
          }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

      public void testValid() {
        for (String name : VALID_NAME) {
          InternetDomainName unused = InternetDomainName.from(name);
        }
      }
    
      public void testInvalid() {
        for (String name : INVALID_NAME) {
          try {
            InternetDomainName.from(name);
            fail("Should have been invalid: '" + name + "'");
          } catch (IllegalArgumentException expected) {
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/FileLocationTest.java

                    assertEquals("/share/foo/bar/", fl2.getURLPath());
                }
            }
        }
    
    
        // test case for #30
        @Test ( expected = MalformedURLException.class )
        public void testInvalid () throws MalformedURLException, CIFSException {
            try ( SmbResource p = new SmbFile("smb:a", getContext()) ) {
                p.getType();
            }
        }
    
    
        // #41
        @Test
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 08 13:16:07 GMT 2020
    - 23K bytes
    - Viewed (0)
Back to top