Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 288 for Generators (0.17 seconds)

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

    public final class QueueTestSuiteBuilder<E>
        extends AbstractCollectionTestSuiteBuilder<QueueTestSuiteBuilder<E>, E> {
      public static <E> QueueTestSuiteBuilder<E> using(TestQueueGenerator<E> generator) {
        return new QueueTestSuiteBuilder<E>().usingGenerator(generator);
      }
    
      private boolean runCollectionTests = true;
    
      /**
       * Specify whether to skip the general collection tests. Call this method when testing a
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/opensearch/config/cbean/ca/bs/BsThumbnailQueueCA.java

        public void setGenerator_Terms(ConditionOptionCall<TermsAggregationBuilder> opLambda) {
            setGenerator_Terms("generator", opLambda, null);
        }
    
        public void setGenerator_Terms(ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsThumbnailQueueCA> aggsLambda) {
            setGenerator_Terms("generator", opLambda, aggsLambda);
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 38.6K bytes
    - Click Count (0)
  3. 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 Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2K bytes
    - Click Count (0)
  4. tests/test_router_events.py

        assert state.app_shutdown is True
    
    
    def test_router_sync_generator_lifespan(state: State) -> None:
        """Test that a sync generator lifespan works via _wrap_gen_lifespan_context."""
        from collections.abc import Generator
    
        def lifespan(app: FastAPI) -> Generator[None, None, None]:
            state.app_startup = True
            yield
            state.app_shutdown = True
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  5. guava-testlib/src/com/google/common/collect/testing/QueueTestSuiteBuilder.java

    public final class QueueTestSuiteBuilder<E>
        extends AbstractCollectionTestSuiteBuilder<QueueTestSuiteBuilder<E>, E> {
      public static <E> QueueTestSuiteBuilder<E> using(TestQueueGenerator<E> generator) {
        return new QueueTestSuiteBuilder<E>().usingGenerator(generator);
      }
    
      private boolean runCollectionTests = true;
    
      /**
       * Specify whether to skip the general collection tests. Call this method when testing a
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java

    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  7. 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 Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 32.5K bytes
    - Click Count (0)
  8. 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 Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 30 16:15:19 GMT 2024
    - 3.9K 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 Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/CollectionTestSuiteBuilder.java

    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 3.6K bytes
    - Click Count (0)
Back to Top