Skip to content

Commit

Permalink
Odd file names in actual result (#568)
Browse files Browse the repository at this point in the history
- added checking actual result
  • Loading branch information
nulls authored Feb 27, 2024
1 parent 751f8c5 commit 29a7c36
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.saveourtool.save.plugin.warn.utils

import com.saveourtool.save.core.logging.logError
import com.saveourtool.save.core.result.CountWarnings
import com.saveourtool.save.core.result.Fail
import com.saveourtool.save.core.result.Pass
Expand All @@ -20,6 +21,13 @@ class ResultsChecker(
private val actualWarningsMap: FileToWarningsMap,
private val warnPluginConfig: WarnPluginConfig,
) {
init {
val oddActualFileNames = actualWarningsMap.keys - expectedWarningsMap.keys
if (oddActualFileNames.isNotEmpty()) {
logError("Detected odd file names in actual result: $oddActualFileNames")
}
}

/**
* Compares actual and expected warnings and returns TestResult
*
Expand Down

0 comments on commit 29a7c36

Please sign in to comment.