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

kotlinx.kover.gradle.aggregation.commons.names.KoverPaths.kt Maven / Gradle / Ivy

There is a newer version: 0.9.0-RC
Show newest version
/*
 * Copyright 2017-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
 */

package kotlinx.kover.gradle.aggregation.commons.names

import java.io.File

internal object KoverPaths {
    internal fun htmlReportPath(): String {
        return "reports${separator}kover${separator}html"
    }

    internal fun xmlReportPath(): String {
        return "reports${separator}kover${separator}report.xml"
    }

    internal fun binReportPath(taskName: String): String {
        return "${binReportsRootPath()}$separator${binReportName(taskName)}"
    }

    internal fun binReportName(taskName: String) = "$taskName.bin"

    internal fun binReportsRootPath() = "kover${separator}bin-reports"

    private val separator = File.separatorChar
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy