Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 3,608 for defn (0.04 sec)

  1. 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)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/exceptions/DefaultMultiCauseExceptionTest.groovy

        }
    
        def canSerializeAndDeserializeException() {
            def cause1 = new RuntimeException("cause1")
            def cause2 = new RuntimeException("cause2")
            def failure = new TestMultiCauseException("message", [cause1, cause2])
    
            when:
            def baos = new ByteArrayOutputStream()
            new ObjectOutputStream(baos).writeObject(failure)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/InterHubMessageSerializerTest.groovy

        }
    
        def "can serialize messages for multiple channels"() {
            def channelId1 = new ChannelIdentifier("channel 1")
            def channelId2 = new ChannelIdentifier("channel 2")
            def message1 = new ChannelMessage(channelId1, "payload 1")
            def message2 = new ChannelMessage(channelId2, "payload 2")
            def message3 = new ChannelMessage(channelId1, "payload 3")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. platforms/software/platform-base/src/test/groovy/org/gradle/api/internal/plugins/DefaultArtifactPublicationSetTest.groovy

        }
    
        def "adds other type to publication"() {
            def artifact = artifact("zip")
    
            when:
            publication.addCandidate(artifact)
    
            then:
            publication.defaultArtifactProvider.get() == set(artifact)
        }
    
        def "prefers war over jar artifact"() {
            def jar = artifact("jar")
            def war = artifact("war")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  5. 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)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/SnapshotSerializerTest.groovy

    import spock.lang.Subject
    
    class SnapshotSerializerTest extends Specification {
    
        def output = new ByteArrayOutputStream()
        def encoder = new OutputStreamBackedEncoder(output)
    
        @Subject
        def serializer = new SnapshotSerializer(Mock(ClassLoaderHierarchyHasher))
    
        def "serializes serialized properties"() {
            def original = snapshot("x".bytes)
            write(original)
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:01 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/SamplesMavenPublishIntegrationTest.groovy

        def "conditional publishing with #dsl dsl"() {
            using m2
    
            given:
            def sampleDir = sampleProject.dir.file(dsl)
            inDirectory(sampleDir)
    
            and:
            def artifactId = "maven-conditional-publishing"
            def version = "1.0"
            def externalRepo = maven(sampleDir.file("build/repos/external"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/ModuleVersionSelectorParsersTest.groovy

            def v = multiParser("").parseNotation(sb) as List
    
            then:
            v.size() == 1
            v[0].name  == 'charsequence'
        }
    
        def "allows exact type on input"() {
            def module = DefaultModuleIdentifier.newId("org.foo", "bar")
            def id = newSelector(module, "2.0")
    
            when:
            def v = multiParser("").parseNotation(id) as List
    
            then:
            v.size() == 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/test/groovy/org/gradle/language/cpp/internal/DefaultCppLibraryTest.groovy

        }
    
        def "compile include path includes public and private header dirs"() {
            def defaultPrivate = tmpDir.file("src/main/headers")
            def defaultPublic = tmpDir.file("src/main/public")
            def d1 = tmpDir.file("src/main/d1")
            def d2 = tmpDir.file("src/main/d2")
            def d3 = tmpDir.file("src/main/d3")
            def d4 = tmpDir.file("src/main/d4")
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/UnpackingVisitorTest.groovy

        def context = Mock(Consumer)
        def resolver = Mock(PathToFileResolver)
        def patternSetFactory = Mock(Factory)
        def visitor = new UnpackingVisitor(context, resolver, TestFiles.taskDependencyFactory(), patternSetFactory)
    
        def "resolves null"() {
            when:
            visitor.add(null)
    
            then:
            0 * context._
        }
    
        def "resolves String"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.9K bytes
    - Viewed (0)
Back to top