Refactoring some names for the parsers.

This commit is contained in:
Vitor Pamplona
2024-02-21 16:22:17 -05:00
parent 90175198f0
commit 96f29fc5ca
12 changed files with 154 additions and 134 deletions

View File

@@ -23,7 +23,7 @@ package com.vitorpamplona.amethyst.benchmark
import androidx.benchmark.junit4.BenchmarkRule
import androidx.benchmark.junit4.measureRepeated
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.vitorpamplona.amethyst.commons.ExpandableTextParser
import com.vitorpamplona.amethyst.commons.ExpandableTextCutOffCalculator
import com.vitorpamplona.amethyst.commons.nthIndexOf
import junit.framework.TestCase
import org.junit.Rule
@@ -60,7 +60,7 @@ class ExpandableViewComputationBenchmark {
benchmarkRule.measureRepeated {
TestCase.assertEquals(
293,
ExpandableTextParser.computeWhereToCutIfPostIsTooLong(testCase1),
ExpandableTextCutOffCalculator.indexToCutOff(testCase1),
)
}
}
@@ -70,7 +70,7 @@ class ExpandableViewComputationBenchmark {
benchmarkRule.measureRepeated {
TestCase.assertEquals(
355,
ExpandableTextParser.computeWhereToCutIfPostIsTooLong(testCase2),
ExpandableTextCutOffCalculator.indexToCutOff(testCase2),
)
}
}
@@ -80,7 +80,7 @@ class ExpandableViewComputationBenchmark {
benchmarkRule.measureRepeated {
TestCase.assertEquals(
65,
ExpandableTextParser.computeWhereToCutIfPostIsTooLong(testCase3),
ExpandableTextCutOffCalculator.indexToCutOff(testCase3),
)
}
}