Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for toSorted (0.19 sec)

  1. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/CaseSensitiveVfsRelativePathTest.groovy

            }
        }
    
        def "children #children are sorted the same with path sensitive and path insensitive compare"() {
            def caseInsensitiveSorted = children.toSorted(getPathComparator(CaseSensitivity.CASE_INSENSITIVE))
            def caseSensitiveSorted = children.toSorted(getPathComparator(CASE_SENSITIVE))
            expect:
            caseInsensitiveSorted == caseSensitiveSorted
    
            where:
            children << CHILDREN_LISTS
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/LinuxInstallationSupplierTest.groovy

            when:
            def directories = supplier.get()
    
            then:
            directories.size() == 2
            directories*.location.toSorted() == [
                candidates.file("11.0.6.hs-adpt"),
                candidates.file("14")
            ]
            directories*.source.unique() == ["Common Linux Locations"]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:55 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/SearchUtilTest.groovy

            []                           | "baa"
            ["b"]                        | "a"
            ["a"]                        | "b"
            ["a"]                        | "a"
    
            sortedChildren = children.toSorted()
            expectedResult = Collections.binarySearch(sortedChildren, searchedChild)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. platforms/core-execution/snapshots/src/integTest/groovy/org/gradle/internal/vfs/DefaultExcludesIntegrationTest.groovy

                    ant.defaultexcludes default: true
                }
            """
            List<String> defaultExcludesFromSettings = (DEFAULT_EXCLUDES  + ['**/' + EXCLUDED_FILE_NAME]).toSorted()
            List<String> defaultExcludesInTask = DEFAULT_EXCLUDES.toSorted()
    
            when:
            fails "copyTask"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 15 12:37:12 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsFixture.groovy

                def buildTreePath = modelExpectation.path
                if (modelExpectation.modelNames != null) {
                    def projectModelNames =  projectModels[buildTreePath].modelName.toSorted()
                    assert projectModelNames == modelExpectation.modelNames.toSorted()
                }
            }
        }
    
        private void assertHasWarningThatIncubatingFeatureUsed() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/integtests/resolve/locking/LockfileFixture.groovy

            def lines = new ArrayList(LockFileReaderWriter.LOCKFILE_HEADER_LIST)
            if (modules.isEmpty()) {
                lines.add("empty=$configuration")
            } else {
                lines.addAll modules.toSorted().collect({ "$it=$configuration".toString() })
                lines.add("empty=")
            }
            lockFile.writelns(lines)
        }
    
        private void createLegacyLockfile(String configurationName, List<String> modules) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/locking/DefaultDependencyLockingProviderTest.groovy

    ${modules.toSorted().collect {"$it=$lockFileId"}.join('\n')}
    empty=
    """.denormalize()
            } else {
                lockDir.file("${lockFileId}.lockfile") << """${LockFileReaderWriter.LOCKFILE_HEADER_LIST.join('\n')}
    ${modules.toSorted().join('\n')}
    """.denormalize()
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/ComponentReplacementIntegrationTest.groovy

                }
                task resolvedFiles {
                    dependsOn 'dependencies'
                    def files = configurations.conf
    
                    doLast {
                        println "resolved files=" + files*.name.toSorted()
                    }
                }
            """
            resolve = new ResolveTestFixture(buildFile)
            resolve.addDefaultVariantDerivationStrategy()
        }
    
        //publishes and declares the dependencies
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  9. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/AbstractFileWatcherUpdaterTest.groovy

            )
        }
    
        static boolean equalIgnoringOrder(Object actual, Collection<?> expected) {
            List<?> actualSorted = (actual as List).toSorted()
            List<?> expectedSorted = (expected as List).toSorted()
            return actualSorted == expectedSorted
        }
    
        boolean vfsHasSnapshotsAt(File location) {
            return virtualFileSystem.root.rootSnapshotsUnder(location.absolutePath)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  10. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/AbstractAndroidSantaTrackerSmokeTest.groovy

                println "> Tasks in surplus: " + (result.tasks.findAll { !outcomesWithMatchingTasks.keySet().contains(it.path) })
                println "> Updated definitions:"
                result.tasks
                    .toSorted { a, b -> a.path <=> b.path }
                    .forEach { task ->
                        println "'${task.path}': ${task.outcome},"
                    }
            }
    
            boolean allOutcomesMatched = true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:24:56 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top