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

main.net.jqwik.kotlin.internal.PairReportingFormat.kt Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
package net.jqwik.kotlin.internal

import net.jqwik.api.SampleReportingFormat
import net.jqwik.api.Tuple

class PairReportingFormat : SampleReportingFormat {

    override fun appliesTo(value: Any): Boolean {
        return value is Pair<*, *>
    }

    @Suppress("NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS")
    override fun report(value: Any): Any {
        val pair = value as Pair<*, *>
        return Tuple.of(pair.first, pair.second)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy