Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odd file names in actual result #568

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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")

Check warning on line 27 in save-plugins/warn-plugin/src/commonMain/kotlin/com/saveourtool/save/plugin/warn/utils/ResultsChecker.kt

View check run for this annotation

Codecov / codecov/patch

save-plugins/warn-plugin/src/commonMain/kotlin/com/saveourtool/save/plugin/warn/utils/ResultsChecker.kt#L27

Added line #L27 was not covered by tests
}
}

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