Skip to content

Commit

Permalink
formatting ...
Browse files Browse the repository at this point in the history
  • Loading branch information
lucymcnatt committed Jan 31, 2025
1 parent e992402 commit a476d05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions centaur/src/main/scala/centaur/test/Test.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ object Operations extends StrictLogging {

def getExpectedCost(workflowCost: Option[BigDecimal]): IO[BigDecimal] =
workflowCost match {
case Some(cost) if cost == 0 => IO.raiseError(new Exception("Expected cost is cannot be 0"))
case Some(cost) if cost == 0 => IO.raiseError(new Exception("Expected cost is cannot be 0"))
case Some(cost) => IO.pure(cost)

Check warning on line 1067 in centaur/src/main/scala/centaur/test/Test.scala

View check run for this annotation

Codecov / codecov/patch

centaur/src/main/scala/centaur/test/Test.scala#L1066-L1067

Added lines #L1066 - L1067 were not covered by tests
case None =>
IO.raiseError(new Exception("Expected 'cost' is required in the test config to validate the workflow cost"))

Check warning on line 1069 in centaur/src/main/scala/centaur/test/Test.scala

View check run for this annotation

Codecov / codecov/patch

centaur/src/main/scala/centaur/test/Test.scala#L1069

Added line #L1069 was not covered by tests
Expand Down Expand Up @@ -1091,7 +1091,7 @@ object Operations extends StrictLogging {
for {
actualCost <- CentaurCromwellClient.cost(submittedWorkflow)
expectedCost <- getExpectedCost(workflowSpec.cost)
_ <- validateCost(actualCost.cost, expectedCost)
_ <- validateCost(actualCost.cost, expectedCost)
} yield ()

Check warning on line 1095 in centaur/src/main/scala/centaur/test/Test.scala

View check run for this annotation

Codecov / codecov/patch

centaur/src/main/scala/centaur/test/Test.scala#L1092-L1095

Added lines #L1092 - L1095 were not covered by tests
}

Expand Down

0 comments on commit a476d05

Please sign in to comment.