- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for calculateLayerSizes (0.3 sec)
-
build-logic/performance-testing/src/test/groovy/gradlebuild/performance/generator/DependencyGeneratorTest.groovy
def dependencyGenerator = new DependencyGenerator() def numberOfProjects = 0 dependencyGenerator.numberOfProjects = numberOfProjects when: def layerSizes = dependencyGenerator.calculateLayerSizes() then: layerSizes.isEmpty() when: def projectsInLayer = dependencyGenerator.splitProjectsInLayers(layerSizes) then: projectsInLayer.isEmpty()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 04 22:26:51 UTC 2021 - 2.8K bytes - Viewed (0) -
build-logic/performance-testing/src/main/groovy/gradlebuild/performance/generator/DependencyGenerator.groovy
* This way the function returns the same results each time it is evaluated. */ class DependencyGenerator { Integer numberOfProjects Integer maxProjectDependencies = 5 def calculateLayerSizes() { Deque<Integer> layerSizes = new ArrayDeque<>() recursiveLayers(numberOfProjects, layerSizes) layerSizes as List }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 5.2K bytes - Viewed (0)