Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 953 for generator (0.05 seconds)

  1. tests/test_dependency_class.py

    from collections.abc import AsyncGenerator, Generator
    
    import pytest
    from fastapi import Depends, FastAPI
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    class CallableDependency:
        def __call__(self, value: str) -> str:
            return value
    
    
    class CallableGenDependency:
        def __call__(self, value: str) -> Generator[str, None, None]:
            yield value
    
    
    class AsyncCallableDependency:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapTestSuiteBuilder.java

      public static <K, V> SortedSetMultimapTestSuiteBuilder<K, V> using(
          TestSetMultimapGenerator<K, V> generator) {
        SortedSetMultimapTestSuiteBuilder<K, V> result = new SortedSetMultimapTestSuiteBuilder<>();
        result.usingGenerator(generator);
        return result;
      }
    
      @SuppressWarnings("rawtypes") // class literals
      @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 30 16:15:19 GMT 2024
    - 3.9K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        FreshValueGenerator generator = new FreshValueGenerator();
        T instance = generator.newFreshProxy(interfaceType);
        new EqualsTester()
            .addEqualityGroup(wrapperFunction.apply(instance), wrapperFunction.apply(instance))
            .addEqualityGroup(wrapperFunction.apply(generator.newFreshProxy(interfaceType)))
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  4. docs/en/data/topic_repos.yml

      stars: 1885
      owner_login: ycd
      owner_html_url: https://github.com/ycd
    - name: openapi-python-client
      html_url: https://github.com/openapi-generators/openapi-python-client
      stars: 1862
      owner_login: openapi-generators
      owner_html_url: https://github.com/openapi-generators
    - name: piccolo
      html_url: https://github.com/piccolo-orm/piccolo
      stars: 1836
      owner_login: piccolo-orm
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Dec 01 13:17:29 GMT 2025
    - 16K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/SetTestSuiteBuilder.java

    @GwtIncompatible
    public class SetTestSuiteBuilder<E>
        extends AbstractCollectionTestSuiteBuilder<SetTestSuiteBuilder<E>, E> {
      public static <E> SetTestSuiteBuilder<E> using(TestSetGenerator<E> generator) {
        return new SetTestSuiteBuilder<E>().usingGenerator(generator);
      }
    
      @SuppressWarnings("rawtypes") // class literals
      @Override
      protected List<Class<? extends AbstractTester>> getTesters() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          generator.addSampleInstances((Class) entry.getKey(), entry.getValue());
        }
        return generator;
      }
    
      private static @Nullable Object generateDummyArg(Parameter param, FreshValueGenerator generator)
          throws ParameterNotInstantiableException {
        if (isNullable(param)) {
          return null;
        }
        Object arg = generator.generateFresh(param.getType());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 32.5K bytes
    - Click Count (0)
  7. tests/test_dependency_after_yield_websockets.py

    from collections.abc import Generator
    from contextlib import contextmanager
    from typing import Annotated, Any
    
    import pytest
    from fastapi import Depends, FastAPI, WebSocket
    from fastapi.testclient import TestClient
    
    
    class Session:
        def __init__(self) -> None:
            self.data = ["foo", "bar", "baz"]
            self.open = True
    
        def __iter__(self) -> Generator[str, None, None]:
            for item in self.data:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2K bytes
    - Click Count (0)
  8. guava-testlib/src/com/google/common/collect/testing/SortedMapTestSuiteBuilder.java

    public class SortedMapTestSuiteBuilder<K, V> extends MapTestSuiteBuilder<K, V> {
      public static <K, V> SortedMapTestSuiteBuilder<K, V> using(
          TestSortedMapGenerator<K, V> generator) {
        SortedMapTestSuiteBuilder<K, V> result = new SortedMapTestSuiteBuilder<>();
        result.usingGenerator(generator);
        return result;
      }
    
      @SuppressWarnings("rawtypes") // class literals
      @Override
      protected List<Class<? extends AbstractTester>> getTesters() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 5K bytes
    - Click Count (0)
  9. tests/test_dependency_partial.py

    from functools import partial
    from typing import Annotated
    
    import pytest
    from fastapi import Depends, FastAPI
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    def function_dependency(value: str) -> str:
        return value
    
    
    async def async_function_dependency(value: str) -> str:
        return value
    
    
    def gen_dependency(value: str) -> Generator[str, None, None]:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/SetMultimapTestSuiteBuilder.java

        extends MultimapTestSuiteBuilder<K, V, SetMultimap<K, V>> {
    
      public static <K, V> SetMultimapTestSuiteBuilder<K, V> using(
          TestSetMultimapGenerator<K, V> generator) {
        SetMultimapTestSuiteBuilder<K, V> result = new SetMultimapTestSuiteBuilder<>();
        result.usingGenerator(generator);
        return result;
      }
    
      @SuppressWarnings("rawtypes") // class literals
      @Override
      protected List<Class<? extends AbstractTester>> getTesters() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 5.6K bytes
    - Click Count (0)
Back to Top