Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 3,608 for defn (0.07 sec)

  1. subprojects/core/src/test/groovy/org/gradle/internal/service/scopes/DefaultGradleUserHomeScopeServiceRegistryTest.groovy

        def "closes services for home dir when another home dir is in use"() {
            def dir1 = new File("home-dir-1")
            def dir2 = new File("home-dir-2")
    
            given:
            def servicesHomeDir1 = homeDirServices.getServicesFor(dir1)
            def homeDir1Service = servicesHomeDir1.get(SomeHomeDirService)
    
            when:
            def services1 = homeDirServices.getServicesFor(dir2)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api-builders/src/test/groovy/org/gradle/tooling/internal/provider/runner/IntermediateBuildActionRunnerTest.groovy

        }
    
        def "collects all failures from actions when running sequentially"() {
            given:
            def action1 = Mock(Supplier)
            def action2 = Mock(Supplier)
            def action3 = Mock(Supplier)
            def failure1 = new RuntimeException()
            def failure2 = new RuntimeException()
    
            when:
            runner.run([action1, action2, action3])
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 20 17:58:18 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/ModelGraphTest.groovy

            0 * listener.onDiscovered(_)
        }
    
        def "notifies listener of node with matching ancestor"() {
            def a = node("a")
            def b = node("a.b")
            def c = node("a.b.c")
            def d = node("a.b.d")
            def e = node("a.b.c.e")
            def f = node("d")
    
            given:
            def listener = Mock(ModelListener) {
                matches(_) >> true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/file/FileOrUriNotationConverterTest.groovy

            setup:
            def testFile = folder.createFile("test1")
            def notation = Stub(Directory)
            notation.asFile >> testFile
            when:
            def object = parse(notation)
            then:
            object == testFile
        }
    
        def "with TextResource returns the underlying File"() {
            setup:
            def testFile = folder.createFile("test1")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 16:59:26 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/file/DefaultProjectLayoutTest.groovy

        }
    
        def "can view directory as a file tree"() {
            def dir1 = projectDir.createDir("dir1")
            def file1 = dir1.createFile("sub-dir/file1")
            def file2 = dir1.createFile("file2")
            def dir2 = projectDir.createDir("dir2")
            def file3 = dir2.createFile("other/file3")
    
            expect:
            def tree1 = layout.projectDirectory.dir("dir1").asFileTree
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 23 16:13:03 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  6. build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/UpdateReleasedVersionsTest.groovy

        def format = new SimpleDateFormat('yyyyMMddHHmmssZ')
    
        def setup() {
            format.timeZone = TimeZone.getTimeZone("UTC")
        }
    
        def "final release is added to list"() {
            def snapshot = snapshot('4.3')
            def rc = releasedVersion('4.3-rc-1')
            def versions = releasedVersions(snapshot, rc, [])
            def version = new ReleasedVersion('4.2', '20170913122310+0000')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 5.4K bytes
    - Viewed (0)
  7. subprojects/diagnostics/src/test/groovy/org/gradle/api/tasks/diagnostics/internal/SingleProjectTaskReportModelTest.groovy

            task5Details.path == pathOf(task5)
        }
    
        def addsAGroupThatContainsTheTasksWithNoGroup() {
            def task1 = task('task1')
            def task2 = task('task2', 'group', task1)
            def task3 = task('task3')
            def task4 = task('task4', task2)
            def task5 = task('task5', task3, task4)
    
            when:
            def model = modelFor([task1, task2, task3, task4, task5])
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 10 17:20:29 UTC 2020
    - 4K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/initialization/layout/BuildLayoutFactoryTest.groovy

            given:
            def locator = buildLayoutFactoryFor()
    
            and: "temporary tree created out of the Gradle build tree"
            def tmpDir = File.createTempFile("stop-", "-at").canonicalFile
            def stopAt = new File(tmpDir, 'stopAt')
            def currentDir = new File(new File(stopAt, "intermediate"), 'current')
            currentDir.mkdirs()
    
            expect:
            def layout = locator.getLayoutFor(currentDir, true)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 09:18:31 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/state/DefaultManagedFactoryRegistryTest.groovy

            def barFactory = factory(Bar)
            def buzzFactory = factory(Buzz)
            registry.withFactories(barFactory, fooFactory)
    
            expect:
            registry.lookup(buzzFactory.id) == null
        }
    
        def "can lookup factory in parent registry"() {
            def fooFactory = factory(Foo)
            def barFactory = factory(Bar)
            def parent = new DefaultManagedFactoryRegistry().withFactories(fooFactory)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  10. tests/test_params_repr.py

            "Query(Ellipsis)",
        )
    
    
    def test_query_repr_number():
        assert repr(Query(1)) == "Query(1)"
    
    
    def test_query_repr_list():
        assert repr(Query([])) == "Query([])"
    
    
    def test_header_repr_str():
        assert repr(Header("teststr")) == "Header(teststr)"
    
    
    def test_header_repr_none():
        assert repr(Header(None)) == "Header(None)"
    
    
    def test_header_repr_ellipsis():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top