run.qontract.core.pattern.ConsumeResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qontract-core Show documentation
Show all versions of qontract-core Show documentation
A Contract Testing Tool that leverages Gherkin to describe APIs in a human readable and machine enforceable manner
package run.qontract.core.pattern
import run.qontract.core.Result
import run.qontract.core.breadCrumb
data class ConsumeResult(val result: Result = Result.Success(), val remainder: List = emptyList()) {
constructor(patterns: List): this(remainder = patterns)
fun breadCrumb(breadCrumb: String): ConsumeResult = this.copy(result = result.breadCrumb(breadCrumb))
}