Skip to content

Commit

Permalink
Add performance test to guard the cycle detection doesn't introduce r…
Browse files Browse the repository at this point in the history
…egression - separate test
  • Loading branch information
jraska committed Jul 23, 2024
1 parent 0462dbe commit af445b0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ class DependencyGraphPerformanceTest {
assert(statistics.modulesCount == 1000)
assert(statistics.edgesCount == 15259)
assert(statistics.longestPath.pathString().startsWith("23 -> 31 -> 36 -> 57 -> 61 -> 72 -> 74 -> 75"))
}

@Test(timeout = 10000)
fun whenTheGraphIsLarge_statisticsSubGraphCreatedFast() {
val subGraphStatistics = dependencyGraph.subTree("500").statistics()
assert(subGraphStatistics.modulesCount == 281)
}
Expand Down

0 comments on commit af445b0

Please sign in to comment.