trait SequenceMatchersCreation extends ExpectationsCreation with ResultImplicits
- Alphabetic
- By Inheritance
- SequenceMatchersCreation
- ResultImplicits
- ExpectationsCreation
- MatchResultStackTrace
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
implicit
class
resultFunction[T, R] extends AnyRef
Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers
Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers
- Definition Classes
- ResultImplicits
- implicit class InvariantMatcherFunction[T] extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
atLeastOnce[T](matcher: Matcher[T]): ContainWithResult[T]
apply a matcher atLeast one value
-
def
atLeastOnce[T, R](values: Traversable[T])(f: (T) ⇒ R)(implicit arg0: AsResult[R]): MatchResult[Traversable[T]]
verify the function f for at least one value
-
def
atLeastOnceWhen[T, R](values: Traversable[T])(f: PartialFunction[T, R])(implicit arg0: AsResult[R]): MatchResult[Traversable[T]]
verify the function f for at least one value, where the PartialFunction is defined
-
def
atMostOnce[T](matcher: Matcher[T]): ContainWithResult[T]
apply a matcher atLeast one value
-
def
atMostOnce[T, R](values: Traversable[T])(f: (T) ⇒ R)(implicit arg0: AsResult[R]): MatchResult[Traversable[T]]
verify the function f for at least one value
-
def
atMostOnceWhen[T, R](values: Traversable[T])(f: PartialFunction[T, R])(implicit arg0: AsResult[R]): MatchResult[Traversable[T]]
verify the function f for at least one value, where the PartialFunction is defined
-
def
checkFailure[T](m: MatchResult[T]): MatchResult[T]
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the match result
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
def
checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the match result
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
def
checkResultFailure(r: ⇒ Result): Result
this method can be overridden to throw exceptions when checking the result
this method can be overridden to throw exceptions when checking the result
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
createExpectable[T](t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]
- returns
an Expectable with a description function
- Definition Classes
- ExpectationsCreation
-
def
createExpectable[T](t: ⇒ T, alias: (String) ⇒ String): Expectable[T]
- returns
an Expectable with a description function
- Definition Classes
- ExpectationsCreation
-
def
createExpectable[T](t: ⇒ T, alias: ⇒ String): Expectable[T]
- returns
an Expectable with a description
- Definition Classes
- ExpectationsCreation
-
def
createExpectable[T](t: ⇒ T): Expectable[T]
- returns
an Expectable
- Definition Classes
- ExpectationsCreation
-
def
createExpectableWithShowAs[T](t: ⇒ T, showAs: ⇒ String): Expectable[T]
- returns
an Expectable with a function to show the element T
- Definition Classes
- ExpectationsCreation
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
forall[T](matcher: Matcher[T]): ContainWithResult[T]
apply a matcher for all values
-
def
forall[T, R](values: Traversable[T])(f: (T) ⇒ R)(implicit arg0: AsResult[R]): MatchResult[Traversable[T]]
verify the function f for all the values, stopping after the first failure
-
def
forallWhen[T, U](values: Traversable[T])(f: PartialFunction[T, MatchResult[U]]): MatchResult[Traversable[T]]
verify the function f for all the values, stopping after the first failure, where the PartialFunction is defined
-
def
foreach[T](matcher: Matcher[T]): ContainWithResult[T]
apply a matcher foreach value
-
def
foreach[T, R](values: Traversable[T])(f: (T) ⇒ R)(implicit arg0: AsResult[R]): MatchResult[Traversable[T]]
verify the function f for all the values, and collect all failures
-
def
foreachWhen[T, R](values: Traversable[T])(f: PartialFunction[T, R])(implicit arg0: AsResult[R]): MatchResult[Traversable[T]]
verify the function f for all the values, and collect all failures, where the PartialFunction is defined
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mapMatchResult[T](m: MatchResult[T]): MatchResult[T]
this method can be overridden to intercept a MatchResult and change its message before it is thrown
this method can be overridden to intercept a MatchResult and change its message before it is thrown
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
sandboxMatchResult[T](mr: ⇒ MatchResult[T]): MatchResult[T]
- returns
the match result without any side-effects
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
def
setStacktrace[T](m: MatchResult[T]): MatchResult[T]
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
- Attributes
- protected
- Definition Classes
- MatchResultStackTrace
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()