All Downloads are FREE. Search and download functionalities are using the official Maven repository.

application.backwardCompatibility.CompatibilityReport.kt Maven / Gradle / Ivy

There is a newer version: 2.0.37
Show newest version
package application.backwardCompatibility

class CompatibilityReport(results: List) {
    val report: String
    val exitCode: Int

    init {
        val failed: Boolean = results.any { it == CompatibilityResult.FAILED }
        val failedCount = results.count { it == CompatibilityResult.FAILED }
        val passedCount = results.count { it == CompatibilityResult.PASSED }

        report = "Files checked: ${results.size} (Passed: ${passedCount}, Failed: $failedCount)"
        exitCode = if(failed) 1 else 0
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy