Skip to content

Commit d68207f

Browse files
committed
chore: better names in LinearHistoryTest
1 parent 4f1aa9e commit d68207f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

model-datastructure/src/commonTest/kotlin/LinearHistoryTest.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ class LinearHistoryTest {
2828
val initialTree = CLTree.builder(ObjectStoreCache(MapBaseStore())).repositoryId("LinearHistoryTest").build()
2929

3030
@Test
31-
fun simpleTest1() {
31+
fun noCommonHistory() {
3232
val v20 = version(20, null)
3333
val v21 = version(21, null)
3434

3535
assertHistory(v20, v21, listOf(v20, v21))
3636
}
3737

3838
@Test
39-
fun simpleTest2() {
39+
fun divergedByTwoCommits() {
4040
val v10 = version(10, null)
4141
val v20 = version(20, v10)
4242
val v21 = version(21, v10)
@@ -45,7 +45,9 @@ class LinearHistoryTest {
4545
}
4646

4747
@Test
48-
fun linearHistoryPerformance() {
48+
fun knownPerformanceIssue() {
49+
// This test was dumped from actual case discovered during a profiling session.
50+
4951
val v30000003a = version(12884901946, null)
5052
val v1000004d1 = version(4294968529, v30000003a)
5153
val v1000004d3 = version(4294968531, v1000004d1)

0 commit comments

Comments
 (0)