ButAtMostCheckerStepImpl
class ButAtMostCheckerStepImpl<T : CharSequence, out S : CharSequenceContains.SearchBehaviour>(times: Int, atLeastBuilder: WithTimesCheckerStepLogic<T, S>, nameContainsNotFun: String, atLeastButAtMostCall: (Int, Int) -> String, atLeastCall: (Int) -> String, butAtMostCall: (Int) -> String, exactlyCall: (Int) -> String, atMostCall: (Int) -> String, val entryPointStepLogic: CharSequenceContains.EntryPointStepLogic<T, S>) : ButAtMostCheckerStep<T, S> , CharSequenceContains.CheckerStepInternal<T, S> (source)
Constructors
Link copied to clipboard
constructor(times: Int, atLeastBuilder: WithTimesCheckerStepLogic<T, S>, nameContainsNotFun: String, atLeastButAtMostCall: (Int, Int) -> String, atLeastCall: (Int) -> String, butAtMostCall: (Int) -> String, exactlyCall: (Int) -> String, atMostCall: (Int) -> String, entryPointStepLogic: CharSequenceContains.EntryPointStepLogic<T, S>)
Properties
Link copied to clipboard
val <T : CharSequence, S : CharSequenceContains.SearchBehaviour> CharSequenceContains.CheckerStep<T, S>._logic: CharSequenceContains.CheckerStepLogic<T, S>
val <T : CharSequence, S : CharSequenceContains.SearchBehaviour> WithTimesCheckerStep<T, S>._logic: WithTimesCheckerStepLogic<T, S>
Entry point to the logic level of Atrium -- which is one level deeper than the API -- within the building process of a sophisticated contains
assertion for CharSequence.
Link copied to clipboard
Contains all Checkers which should be applied to the search result.
Link copied to clipboard
The previously chosen EntryPointStep, containing inter alia the AssertionContainer to which the resulting Assertion shall be appended.
Functions
Link copied to clipboard
inline fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> CharSequenceContains.CheckerStep<T, S>._logicAppend(factory: CharSequenceContains.CheckerStepLogic<T, S>.() -> Assertion): Expect<T>
Appends the Assertion the given factory creates based on this CharSequenceContains.CheckerStep.
Link copied to clipboard
fun <T : CharSequence> CharSequenceContains.CheckerStepLogic<T, NoOpSearchBehaviour>.regex(expected: List<String>): AssertionGroup
fun <T : CharSequence> CharSequenceContains.CheckerStepLogic<T, NoOpSearchBehaviour>.regex(expected: List<Regex>): AssertionGroup
Link copied to clipboard
fun <T : CharSequence> CharSequenceContains.CheckerStepLogic<T, IgnoringCaseSearchBehaviour>.regexIgnoringCase(expected: List<String>): AssertionGroup
Link copied to clipboard
inline 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
.
Link copied to clipboard
fun <T : CharSequence> CharSequenceContains.CheckerStepLogic<T, NoOpSearchBehaviour>.values(expected: List<CharSequenceOrNumberOrChar>): AssertionGroup
Link copied to clipboard