blob: cef628e4119f97a575b1d88608bc84ba2bc2b9e4 [file] [log] [blame]
package com.googlesource.gerrit.plugins.analytics.common
import com.googlesource.gerrit.plugins.analytics.test.GitTestCase
import org.gitective.core.CommitFinder
trait TestUtils {
self: GitTestCase =>
def aggregateBy(strategy: AggregationStrategy): Array[AggregatedUserCommitActivity] = {
val filter = new AggregatedHistogramFilterByDates(aggregationStrategy = strategy)
new CommitFinder(testRepo).setFilter(filter).find
filter.getHistogram.getAggregatedUserActivity
}
}