doc / ch.tutteli.atrium.logic.creating.charsequence.contains.steps / WithTimesCheckerStepLogic

WithTimesCheckerStepLogic

interface WithTimesCheckerStepLogic<T : CharSequence, out S : CharSequenceContains.SearchBehaviour> : CharSequenceContains.CheckerStepLogic<T, S>

A CharSequenceContains.CheckerStepLogic which is used to choose a CharSequenceContains.Checker which is based on a number of times.

Properties

times

abstract val times: Int

Extension Functions

butAtMostCheckerStep

fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> WithTimesCheckerStepLogic<T, S>.butAtMostCheckerStep(times: Int, nameContainsNotFun: String, atLeastButAtMostCall: (Int, Int) -> String, atLeastCall: (Int) -> String, butAtMostCall: (Int) -> String, exactlyCall: (Int) -> String, atMostCall: (Int) -> String): ButAtMostCheckerStep<T, S>

regex

fun <T : CharSequence> CharSequenceContains.CheckerStepLogic<T, NoOpSearchBehaviour>.regex(expected: List<String>): AssertionGroup

toVarArg

fun <T> CharSequenceContains.CheckerStepLogic<*, *>.toVarArg(iterableLike: IterableLike): Pair<T, Array<out T>>

Transforms the given iterableLike to Pair<T, Array<out T>> with the intention that it can be easily used for a function requiring T, vararg T.

Inheritors

WithTimesCheckerStepInternal

interface WithTimesCheckerStepInternal<T : CharSequence, out S : CharSequenceContains.SearchBehaviour> : WithTimesCheckerStep<T, S>, WithTimesCheckerStepLogic<T, S>, CharSequenceContains.CheckerStepInternal<T, S>

Sole purpose of this interface is to hide CharSequenceContains.CheckerStepLogic from newcomers which usually don't have to deal with this type and to keep the API clean.