Skip to content

Commit

Permalink
Remove unrequired pending tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timgent committed Jul 14, 2020
1 parent 3f41f48 commit ddbe96f
Showing 1 changed file with 7 additions and 38 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
package com.github.timgent.sparkdataquality.metrics

import com.github.timgent.sparkdataquality.metrics.MetricCalculator.{ComplianceMetricCalculator, DistinctValuesMetricCalculator, SimpleMetricCalculator, SizeMetricCalculator, SumValuesMetricCalculator}
import com.github.timgent.sparkdataquality.metrics.MetricCalculator.{
ComplianceMetricCalculator,
DistinctValuesMetricCalculator,
SimpleMetricCalculator,
SizeMetricCalculator,
SumValuesMetricCalculator
}
import com.github.timgent.sparkdataquality.metrics.MetricValue.{DoubleMetric, LongMetric}
import com.github.timgent.sparkdataquality.utils.CommonFixtures._
import com.holdenkarau.spark.testing.DatasetSuiteBase
Expand Down Expand Up @@ -36,10 +42,6 @@ class MetricCalculatorTest extends AnyWordSpec with DatasetSuiteBase with Matche
val letterNotAFilter = MetricFilter('str =!= "a", "letter not equal to a")
testMetricAggFunction(ds, SizeMetricCalculator(letterNotAFilter), LongMetric(2))
}

"return a failure when an invalid filter is given" in { // TODO: Implement error handling for bad metrics
pending
}
}

"ComplianceMetricCalculator" should {
Expand Down Expand Up @@ -77,14 +79,6 @@ class MetricCalculatorTest extends AnyWordSpec with DatasetSuiteBase with Matche
DoubleMetric(0.5)
)
}

"return a failure when an invalid filter is given" in { // TODO: Implement error handling for bad metrics
pending
}

"return a failure when an invalid compliance fn is given" in { // TODO: Implement error handling for bad metrics
pending
}
}

"DistinctValuesMetricCalculator" should {
Expand Down Expand Up @@ -114,21 +108,8 @@ class MetricCalculatorTest extends AnyWordSpec with DatasetSuiteBase with Matche
LongMetric(3)
)
}

"return a failure when an invalid filter is given" in { // TODO: Implement error handling for bad metrics
pending
}

"return a failure when an invalid column is given" in { // TODO: Implement error handling for bad metrics
pending
}

"return a failure when an empty list of columns is given" in {
pending
}
}


"SumValuesMetricCalculator" should {
lazy val ds = Seq(
NumberString(1, "a"),
Expand All @@ -153,17 +134,5 @@ class MetricCalculatorTest extends AnyWordSpec with DatasetSuiteBase with Matche
LongMetric(6)
)
}

"return a failure when an invalid filter is given" in { // TODO: Implement error handling for bad metrics
pending
}

"return a failure when an invalid column is given" in { // TODO: Implement error handling for bad metrics
pending
}

"return a failure when the column value can't be summed" in { // TODO: Implement error handling for bad metrics
pending
}
}
}

0 comments on commit ddbe96f

Please sign in to comment.