Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Cls (0.03 sec)

  1. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       *       {@code cls}, instance methods are skipped for nulls test.
       *   <li>Nulls test is not performed on method return values unless the method is a non-private
       *       static factory method whose return type is {@code cls} or {@code cls}'s subtype.
       * </ul>
       */
      public void testNulls(Class<?> cls) {
        try {
          doTestNulls(cls, Visibility.PACKAGE);
        } catch (Exception e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java

            private void traverseObjectWithParents(Class<?> cls, Object target) throws ModelInterpolationException {
                if (cls == null) {
                    return;
                }
    
                if (cls.isArray()) {
                    evaluateArray(target);
                } else if (isQualifiedForInterpolation(cls)) {
                    Field[] fields = FIELDS_BY_CLASS.computeIfAbsent(cls, k -> cls.getDeclaredFields());
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

        TreeMap<String, Class<?>> classMap = Maps.newTreeMap();
        for (Class<?> cls : classes) {
          classMap.put(cls.getName(), cls);
        }
        // Foo.class -> [FooTest.class, FooTests.class, FooTestSuite.class, ...]
        Multimap<Class<?>, Class<?>> testClasses = HashMultimap.create();
        LinkedHashSet<Class<?>> candidateClasses = Sets.newLinkedHashSet();
        for (Class<?> cls : classes) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  4. tests/test_generic_parameterless_depends.py

    @app.get("/a")
    async def a(dep: Dep[A]):
        return {"cls": dep.__class__.__name__}
    
    
    @app.get("/b")
    async def b(dep: Dep[B]):
        return {"cls": dep.__class__.__name__}
    
    
    client = TestClient(app)
    
    
    def test_generic_parameterless_depends():
        response = client.get("/a")
        assert response.status_code == 200, response.text
        assert response.json() == {"cls": "A"}
    
        response = client.get("/b")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Apr 02 02:52:56 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. fastapi/datastructures.py

        @classmethod
        def __get_validators__(cls: Type["UploadFile"]) -> Iterable[Callable[..., Any]]:
            yield cls.validate
    
        @classmethod
        def validate(cls: Type["UploadFile"], v: Any) -> Any:
            if not isinstance(v, StarletteUploadFile):
                raise ValueError(f"Expected UploadFile, received: {type(v)}")
            return v
    
        @classmethod
        def _validate(cls, __input_value: Any, _: Any) -> "UploadFile":
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

        TreeMap<String, Class<?>> classMap = Maps.newTreeMap();
        for (Class<?> cls : classes) {
          classMap.put(cls.getName(), cls);
        }
        // Foo.class -> [FooTest.class, FooTests.class, FooTestSuite.class, ...]
        Multimap<Class<?>, Class<?>> testClasses = HashMultimap.create();
        LinkedHashSet<Class<?>> candidateClasses = Sets.newLinkedHashSet();
        for (Class<?> cls : classes) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

          Iterable<ClassPath.ClassInfo> classes, Class<?> cls) {
        for (ClassPath.ClassInfo classInfo : classes) {
          if (classInfo.getName().equals(cls.getName())) {
            return classInfo;
          }
        }
        throw new AssertionError("failed to find " + cls);
      }
    
      private static ResourceInfo resourceInfo(Class<?> cls) {
        String resource = cls.getName().replace('.', '/') + ".class";
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 25K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/ClassPathTest.java

          Iterable<ClassPath.ClassInfo> classes, Class<?> cls) {
        for (ClassPath.ClassInfo classInfo : classes) {
          if (classInfo.getName().equals(cls.getName())) {
            return classInfo;
          }
        }
        throw new AssertionError("failed to find " + cls);
      }
    
      private static ResourceInfo resourceInfo(Class<?> cls) {
        String resource = cls.getName().replace('.', '/') + ".class";
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/ws/WebSocketRecorder.kt

        assertThat(event.response).isNull()
        assertThat(event.t).isSameAs(t)
      }
    
      fun assertFailure(
        cls: Class<out IOException?>?,
        vararg messages: String,
      ) {
        val event = nextEvent() as Failure
        assertThat(event.response).isNull()
        assertThat(event.t.javaClass).isEqualTo(cls)
        if (messages.isNotEmpty()) {
          assertThat(messages).contains(event.t.message)
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  10. docs/sts/client_grants/sts_element.py

            self.element = element
    
        @classmethod
        def fromstring(cls, root_name, data):
            """Initialize STSElement from name and XML string data.
    
            :param name: Name for XML data. Used in XML errors.
            :param data: string data to be parsed.
            :return: Returns an STSElement.
            """
            try:
                return cls(root_name, cElementTree.fromstring(data))
            except _ETREE_EXCEPTIONS as error:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 2.5K bytes
    - Viewed (0)
Back to top