Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,382 for defn (0.45 sec)

  1. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/event/DefaultListenerManagerInServiceRegistryTest.groovy

        def listenerManager = new DefaultListenerManager(Scope.BuildTree)
        def services = new DefaultServiceRegistry()
    
        def setup() {
            services.add(listenerManager)
        }
    
        def "automatically creates and registers stateful listener when first event is broadcast"() {
            def created = Mock(Runnable)
            def listener = Mock(TestListener)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/internal/problems/DefaultProblemDiagnosticsFactoryTest.groovy

        def locationAnalyzer = Mock(ProblemLocationAnalyzer)
        def userCodeContext = Mock(UserCodeApplicationContext)
        def factory = new DefaultProblemDiagnosticsFactory(DefaultFailureFactory.withDefaultClassifier(), locationAnalyzer, userCodeContext, 2)
    
        def "uses caller's stack trace to calculate problem location"() {
            given:
            def location = Stub(Location)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 17:15:42 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/internal/daemon/clientinput/StdInStreamTest.groovy

        }
    
        def "can read multiple batches of input from client"() {
            def dispatch = Mock(OutputEventListener)
            def stream = new StdInStream(dispatch)
            def text1 = "some text"
            def bytes1 = text1.bytes
            def text2 = "more"
            def bytes2 = text2.bytes
    
            when:
            async {
                start {
                    def buffer = new byte[1024]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. tests/main.py

    def get_str_id(item_id: str):
        return item_id
    
    
    @app.get("/path/int/{item_id}")
    def get_int_id(item_id: int):
        return item_id
    
    
    @app.get("/path/float/{item_id}")
    def get_float_id(item_id: float):
        return item_id
    
    
    @app.get("/path/bool/{item_id}")
    def get_bool_id(item_id: bool):
        return item_id
    
    
    @app.get("/path/param/{item_id}")
    def get_path_param_id(item_id: Optional[str] = Path()):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. tensorflow/BUILD

            # copybara:uncomment_end
            "//conditions:default": [
                "-z defs",
                "-Wl,--version-script,$(location //tensorflow/c:version_script.lds)",
            ],
        }),
        per_os_targets = True,
        soversion = VERSION,
        visibility = ["//visibility:public"],
        # copybara:comment_begin(OSS Windows only: DEF file for exported symbols)
        win_def_file = select({
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 16:51:59 UTC 2024
    - 53.5K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceProjectLockTest.groovy

            then:
            noExceptionThrown()
        }
    
        def "multiple threads can coordinate on locking of multiple builds when not in parallel"() {
            def projectLockService = workerLeaseService(false)
            def threadCount = 20
            def buildCount = 4
            def testLock = []
            buildCount.times { i -> testLock[i] = new ReentrantLock() }
            def started = new CountDownLatch(threadCount)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  7. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/MultiProjectJvmApplicationInitIntegrationTest.groovy

        def "creates multi-project application sample when incubating flag = #incubating"() {
            given:
            def dsl = buildDsl
            def language = jvmLanguage.name
            def ext = jvmLanguage.extension
            def settingsFile = dsl.fileNameFor('settings')
            def buildFile = dsl.fileNameFor('build')
            def javaMajorVersion = JavaVersion.current().majorVersion
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 03:26:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. platforms/core-runtime/io/src/test/groovy/org/gradle/internal/io/StreamByteBufferTest.groovy

        }
    
        def "empty buffer to String returns empty String"() {
            given:
            def byteBuffer = new StreamByteBuffer()
    
            expect:
            byteBuffer.readAsString() == ''
        }
    
        def "can use InputStream interface to read from buffer"() {
            given:
            def byteBuffer = createTestInstance()
            def input = byteBuffer.getInputStream()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 13:06:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/internal/operations/DefaultBuildOperationExecutorParallelExecutionTest.groovy

            maxThreads << [1, 4, 10]
        }
    
        def "failures in one queue do not cause failures in other queues"() {
            given:
            def amountOfWork = 10
            def maxThreads = 4
            setupBuildOperationExecutor(maxThreads)
            def success = new DefaultBuildOperationQueueTest.Success()
            def failure = new DefaultBuildOperationQueueTest.Failure()
            def worker = new SimpleWorker()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/transform/AttributeMatchingArtifactVariantSelectorSpec.groovy

    class AttributeMatchingArtifactVariantSelectorSpec extends Specification {
    
        def consumerProvidedVariantFinder = Mock(ConsumerProvidedVariantFinder)
        def transformedVariantFactory = Mock(TransformedVariantFactory)
        def dependenciesResolverFactory = Mock(TransformUpstreamDependenciesResolverFactory)
        def attributeMatcher = Mock(AttributeMatcher)
        def attributesSchema = Mock(AttributesSchemaInternal) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 13:08:22 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top