Skip to content

Commit

Permalink
#829 PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Adamczyk committed Jul 2, 2020
1 parent 1d58a1a commit 45b4629
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions test_runner/src/main/kotlin/ftl/util/SavedMatrixTableUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@ fun List<SavedMatrix>.asPrintableTable(): String = buildTable(
TableColumn(OUTCOME_DETAILS_COLUMN_HEADER, mapNotNull { it.outcomeDetails })
)

private fun getOutcomeColor(outcome: String): SystemOutColor {
// inconclusive is treated as a failure, flaky as a success
return when (outcome) {
failure -> SystemOutColor.RED
success -> SystemOutColor.GREEN
flaky -> SystemOutColor.BLUE
else -> SystemOutColor.DEFAULT
}
private fun getOutcomeColor(outcome: String) = when (outcome) {
failure -> SystemOutColor.RED
success -> SystemOutColor.GREEN
flaky -> SystemOutColor.BLUE
else -> SystemOutColor.DEFAULT
}

private const val OUTCOME_COLUMN_HEADER = "OUTCOME"
Expand Down

0 comments on commit 45b4629

Please sign in to comment.