org.specs2.matcher

Members list

Packages

Type members

Classlikes

trait AdaptableMatcher[T] extends Matcher[T]

Inherit this trait to provide a Matcher where both the actual and the expected values can be adapted with a function.

Inherit this trait to provide a Matcher where both the actual and the expected values can be adapted with a function.

Attributes

Supertypes
trait Matcher[T]
class Object
trait Matchable
class Any
Known subtypes
class EqualityMatcher[T]
class BeEqualTo
class BeTypedEqualTo[T]
Self type
case class AlwaysMatcher[T]() extends Matcher[T]

This matcher always matches any value of type T

This matcher always matches any value of type T

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[T]
class Object
trait Matchable
class Any
Show all
class AndMatch[T] extends MatchResult[T]

Attributes

Supertypes
trait MatchResult[T]
trait ResultLike
class Object
trait Matchable
class Any
class AndNotMatch[T] extends MatchResult[T]

Attributes

Supertypes
trait MatchResult[T]
trait ResultLike
class Object
trait Matchable
class Any

This trait allows to write expressions like

This trait allows to write expressions like

1 must be equalTo(1)

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait AnyMatchers
object AnyMatchers.type
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
Show all
Self type

This trait provides matchers which are applicable to any type of value

This trait provides matchers which are applicable to any type of value

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AnyMatchers.type
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
Show all
object AnyMatchers extends AnyMatchers

Attributes

Companion
trait
Supertypes
trait AnyMatchers
class Object
trait Matchable
class Any
Self type
class BeCloseTo[T](n: T, delta: T)(implicit evidence$2: Numeric[T]) extends Matcher[T]

Attributes

Supertypes
trait Matcher[T]
class Object
trait Matchable
class Any
class BeEqualTo(t: => Any) extends EqualityMatcher[Any]

Equality Matcher

Equality Matcher

Attributes

Supertypes
class EqualityMatcher[Any]
trait AdaptableMatcher[Any]
trait Matcher[Any]
class Object
trait Matchable
class Any
Show all
case class BeEqualTypedValueCheck[T](expected: T)(implicit evidence$1: Diffable[T]) extends ValueCheck[T]

ValueCheck for a typed expected value. It uses the BeTypedEqualTo matcher

ValueCheck for a typed expected value. It uses the BeTypedEqualTo matcher

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ValueCheck[T]
class Object
trait Matchable
class Any
Show all
case class BeEqualValueCheck[T](expected: Any) extends ValueCheck[T]

ValueCheck for an untyped expected value. It uses the BeEqualTo matcher

ValueCheck for an untyped expected value. It uses the BeEqualTo matcher

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ValueCheck[T]
class Object
trait Matchable
class Any
Show all
class BeLessThan[T](n: T)(implicit convert: T => Ordered[T]) extends Matcher[T]

Attributes

Supertypes
trait Matcher[T]
class Object
trait Matchable
class Any
class BeLessThanOrEqualTo[T](n: T)(implicit convert: T => Ordered[T]) extends Matcher[T]

Attributes

Supertypes
trait Matcher[T]
class Object
trait Matchable
class Any
object BeMatching

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
BeMatching.type
class BeMatchingRegex(r: Regex)

Attributes

Supertypes
trait Matcher[String]
class Object
trait Matchable
class Any
class BeNull[T] extends Matcher[T]

Attributes

Supertypes
trait Matcher[T]
class Object
trait Matchable
class Any
case class BeOneOf[T](t: Seq[T]) extends Matcher[T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[T]
class Object
trait Matchable
class Any
Show all
class BeSignificantlyCloseTo[T](target: T, sf: SignificantFigures)(implicit evidence$3: Numeric[T]) extends Matcher[T]

Attributes

Supertypes
trait Matcher[T]
class Object
trait Matchable
class Any
class BeTheSameAs[T <: AnyRef](t: => T) extends Matcher[T]

Attributes

Supertypes
trait Matcher[T]
class Object
trait Matchable
class Any
class BeTrueMatcher extends Matcher[Boolean]

Matcher for a boolean value which must be true

Matcher for a boolean value which must be true

Attributes

Supertypes
trait Matcher[Boolean]
class Object
trait Matchable
class Any
class BeTypedEqualTo[T](t: => T) extends EqualityMatcher[T]

Typed equality Matcher with fallback comparison results

Typed equality Matcher with fallback comparison results

Attributes

Supertypes
class EqualityMatcher[T]
trait AdaptableMatcher[T]
trait Matcher[T]
class Object
trait Matchable
class Any
Show all
case class BetweenMatcher[T](t1: T, t2: T, includeStart: Boolean, includeEnd: Boolean)(implicit convert: T => Ordered[T]) extends Matcher[T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[T]
class Object
trait Matchable
class Any
Show all
case class CanHaveDelta[S](n: S)(implicit evidence$1: Numeric[S])

transient class allowing the creation of a delta

transient class allowing the creation of a delta

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ContainWithResult[T](check: ValueCheck[T], timesMin: Option[Times], timesMax: Option[Times], checkAll: Boolean) extends Matcher[Iterable[T]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[Iterable[T]]
class Object
trait Matchable
class Any
Show all
case class ContainWithResultSeq[T](checks: Seq[ValueCheck[T]], containsAtLeast: Boolean, containsAtMost: Boolean, eachCheck: Boolean, checkOrder: Boolean, negate: Boolean) extends Matcher[Iterable[T]]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[Iterable[T]]
class Object
trait Matchable
class Any
Show all
case class DataTable(titles: Seq[String], rows: Seq[DataTableRow])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object DataTable

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
DataTable.type
case class DataTableRow(cells: Seq[String], result: Result)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object DataTableRow

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

This trait provides implicit definitions and types to create DataTables.

This trait provides implicit definitions and types to create DataTables.

A DataTable has a header defining column names and rows holding values. It is possible to apply a function taking the row values and returning a MatchResult.

A TableHeader is defined by separating the column names with '|': "a" | "b" | "c"

A DataRow is defined by separating the row values with '!': 1 ! 2 ! 3

Note that the '!' method can conflict with the creation of Examples when the value is a string. In that case it is possible to use the '!!! method to disambiguate:

"1" !! "2" ! "3"

In that case the first column of the header can also be defined with '||' for pure symmetry reasons:

"a" || "b" | "c" "1" !! "2" ! "3"

Attributes

See also

org.specs2.matcher.DataTablesSpec for examples

Supertypes
class Object
trait Matchable
class Any

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Matchers for the Either datatype

Matchers for the Either datatype

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object EitherMatchers.type
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
Show all

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
class EqualityMatcher[T](t: => T)(implicit evidence$1: Diffable[T]) extends AdaptableMatcher[T]

Attributes

Supertypes
trait AdaptableMatcher[T]
trait Matcher[T]
class Object
trait Matchable
class Any
Known subtypes
class BeEqualTo
class BeTypedEqualTo[T]
Self type
trait EventuallyMatchers extends EventuallyResults

This trait adds the possibility to retry a given matcher until it succeeds.

This trait adds the possibility to retry a given matcher until it succeeds.

This was contributed by @robey (http://robey.lag.net)

Attributes

Companion
object
Supertypes
trait EventuallyResults
class Object
trait Matchable
class Any
Known subtypes
object EventuallyMatchers.type
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
trait Matchers1
Show all

Attributes

Companion
trait
Supertypes
trait EventuallyResults
class Object
trait Matchable
class Any
Self type

These matchers can be used to check if exceptions are thrown or not

These matchers can be used to check if exceptions are thrown or not

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ExceptionMatchers.type
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
Show all

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Show all
Self type
class Expectable[+T]

The Expectable class models anything which can be checked by applying a Matcher

The Expectable class models anything which can be checked by applying a Matcher

It stores a value which is only evaluated when necessary and an optional additional description for that value.

The Expectable object is responsible for creating its own description, based on the value toString method and and an additional description.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class MustExpectable[T]
class ShouldExpectable[T]
Self type
object Expectable

Factory methods for creating Expectables

Factory methods for creating Expectables

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Expectable.type

This trait provides implicit definitions to transform any value into an Expectable

This trait provides implicit definitions to transform any value into an Expectable

Attributes

Companion
object
Supertypes
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Known subtypes
object Expectations extends Expectations

Attributes

Companion
trait
Supertypes
trait Expectations
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Self type

Base trait to create expectations

Base trait to create expectations

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait DataTables
trait Expectations
object Expectations.type
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object MatchersImplicits.type
object ReturnsSyntax.type
object ShouldExpectations.type
object MustExpectations.type
object MatcherZipOperators.type
object ResultImplicits.type
object StandardMatchResults.type
object ThrownExpectations.type
object TypedEqual.type
Show all

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Show all
Self type
case class LeftCheckedMatcher[T](check: ValueCheck[T]) extends OptionLikeCheckedMatcher[Either, T, T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class OptionLikeCheckedMatcher[<none>, T, T]
trait Matcher[<none>[T]]
class Object
trait Matchable
class Any
Show all
case class LeftMatcher[T]() extends OptionLikeMatcher[Either, T, T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class OptionLikeMatcher[<none>, T, T]
trait Matcher[<none>[T]]
class Object
trait Matchable
class Any
Show all
trait MapMatchers

Matchers for Maps

Matchers for Maps

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object MapMatchers.type
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
Show all
object MapMatchers extends MapMatchers

Attributes

Companion
trait
Supertypes
trait MapMatchers
class Object
trait Matchable
class Any
Self type
case class MatchFailure[T] extends MatchResult[T]

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait MatchResult[T]
trait ResultLike
class Object
trait Matchable
class Any
Show all
object MatchFailure

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
class MatchFailureException[T](val failure: MatchFailure[T]) extends FailureException, MatchResultException[T]

this class allows to throw a match failure result in an Exception

this class allows to throw a match failure result in an Exception

Attributes

Companion
object
Supertypes
class FailureException
trait Product
trait Equals
trait ExecuteException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
case class MatchPending[T] extends MatchResult[T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait MatchResult[T]
trait ResultLike
class Object
trait Matchable
class Any
Show all
class MatchPendingException[T](val p: MatchPending[T]) extends PendingException, MatchResultException[T]

this class allows to throw a pending result in an Exception

this class allows to throw a pending result in an Exception

Attributes

Companion
object
Supertypes
class PendingException
trait Product
trait Equals
trait ExecuteException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait MatchResult[+T] extends ResultLike

Result of a Match.

Result of a Match.

A MatchResult contains several information about a match on an expectable:

  • the expectable value, to allow the chaining of matches
  • a pair of messages ok message / ko message to allow the easy creation of the negation of a match

A MatchResult can be transformed to a simple Result object to be the body of an Example.

There are different kinds of MatchResults, some of them being only created to support English-like combination of Matchers:

1 must be equalTo(1) and not be equalTo(2)

In an Expectation like the one above, there is a left to right evaluation:

  1. be is a NeutralMatcher, returning a NeutralMatch doing nothing yet, just storing the expectable

  2. equalTo(1) is a real Matcher which is applied to the NeutralMatch MatchResult thanks to an implicit definition in the BeHaveAnyMatchers trait. This yields a MatchSuccess result

  3. not creates a NotMatcher and can be and-ed with the previous MatchSuccess to yield a AndMatch(MatchSuccess, NotMatch), with NotMatch being the result of applying the NotMatcher to the expectable. This AndMatch is evaluated to create a AndNotMatch(MatchSuccess, MatchSkip)

    Basically this is like forming an evaluation structure which will be resolved when the next 'real' matcher will arrive

  4. the AndNotMatch get nows it be method called with the equalTo Matcher. This results in equalTo being applied to the AndNotMatch, effectively doing: MatchSuccess and MatchSkip.apply(equalTo(2).not), which is MatchSuccess and expectable.applyMatcher(equalTo(2).not) which is MatchSuccess

Attributes

See also

org.specs2.matcher.BeHaveMatchersSpec for examples

Companion
object
Supertypes
trait ResultLike
class Object
trait Matchable
class Any
Known subtypes
class AndMatch[T]
class AndNotMatch[T]
class MatchFailure[T]
class MatchPending[T]
class MatchSkip[T]
class MatchSuccess[T]
class NeutralMatch[T]
class NotMatch[T]
class OrMatch[T]
class OrNotMatch[T]
Show all
object MatchResult

Utility functions for MatchResult.

Utility functions for MatchResult.

A MatchResult is a Functor where the fmap function acts on the embedded Expectable value (which itself is a Functor)

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait MatchResultCombinators extends MatchResultLogicalCombinators, ResultLogicalCombinators

This trait provides logical operators to combine match results where potentially a MatchResult expression throws an Exception, either because it is an error or because it is a ThrownExpectation

This trait provides logical operators to combine match results where potentially a MatchResult expression throws an Exception, either because it is an error or because it is a ThrownExpectation

Attributes

Companion
object
Supertypes
trait ResultLogicalCombinators
trait Results
trait Expectations
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object MatchersImplicits.type
Show all

Attributes

Companion
trait
Supertypes
trait ResultLogicalCombinators
trait Results
trait Expectations
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Implicit conversions for MatchResults

Implicit conversions for MatchResults

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object MatchResultImplicits.type
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object MatchersImplicits.type
Show all
Self type

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Supertypes
trait Expectations
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Companion
trait
Supertypes
trait Expectations
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Self type

this trait allows to fill-in stack traces on match results for precise location

this trait allows to fill-in stack traces on match results for precise location

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait DataTables
trait Expectations
object Expectations.type
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object MatchersImplicits.type
object ReturnsSyntax.type
object ShouldExpectations.type
object MustExpectations.type
object MatcherZipOperators.type
object ResultImplicits.type
object StandardMatchResults.type
object ThrownExpectations.type
object TypedEqual.type
Show all
case class MatchSkip[T] extends MatchResult[T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait MatchResult[T]
trait ResultLike
class Object
trait Matchable
class Any
Show all
class MatchSkipException[T](val s: MatchSkip[T]) extends SkipException, MatchResultException[T]

this class allows to throw a skipped match result in an Exception

this class allows to throw a skipped match result in an Exception

Attributes

Companion
object
Supertypes
class SkipException
trait Product
trait Equals
trait ExecuteException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
case class MatchSuccess[T] extends MatchResult[T]

The signature of this class constructor is unusual, with a useless implicit parameter.

The signature of this class constructor is unusual, with a useless implicit parameter.

This is actually here to avoid overloading conflicts with the apply method in the companion object

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait MatchResult[T]
trait ResultLike
class Object
trait Matchable
class Any
Show all
object MatchSuccess

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
trait Matcher[-T]

The Matcher trait is the base trait for any Matcher.

The Matcher trait is the base trait for any Matcher.

This trait can be extended to provide an appropriate apply method that will check an expectable value a: Expectable[T].

The result of a match is a MatchResult object (@see MatchResult).

Matchers can be composed.

Implementation notes:

  • the parameter to the apply method must be a by-name parameter. This allows some values to be evaluated only when necessary.

  • However in the implementation of the apply function, it must be taken care of not evaluating the parameter twice. Assigning it to a val is the solution to this issue.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type
Matcher[T]
object Matcher

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Matcher.type

This trait provides 'zip' operators to create matchers on tuples based on "zipped" matchers on fields

This trait provides 'zip' operators to create matchers on tuples based on "zipped" matchers on fields

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object MatcherZipOperators.type
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object MatchersImplicits.type
Show all
Self type

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Show all
Self type

Generation code for the MatcherZipOperators trait

Generation code for the MatcherZipOperators trait

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Trait aggregating the most common specs2 matchers

Trait aggregating the most common specs2 matchers

Attributes

Companion
object
Supertypes
trait ResultLogicalCombinators
trait Results
trait Expectations
trait TypedEqual
trait EventuallyResults
trait TryMatchers
trait ValueChecks
trait MapMatchers
trait NumberOfTimes
trait ImplicitParameters
trait LazyParameters
trait AnyMatchers
class Object
trait Matchable
class Any
Show all
Known subtypes
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
Show all
object Matchers extends Matchers

Attributes

Companion
trait
Supertypes
trait Matchers
trait ResultLogicalCombinators
trait Results
trait Expectations
trait TypedEqual
trait EventuallyResults
trait TryMatchers
trait ValueChecks
trait MapMatchers
trait NumberOfTimes
trait ImplicitParameters
trait LazyParameters
trait AnyMatchers
class Object
trait Matchable
class Any
Show all
Self type
Matchers.type

Attributes

Supertypes
trait EventuallyResults
class Object
trait Matchable
class Any
Show all

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object MatchersCreation.type
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object MatchersImplicits.type
Show all

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

This trait provides implicit definitions from MatchResults and Booleans to Results.

This trait provides implicit definitions from MatchResults and Booleans to Results.

It also allows to:

  • create matchers from functions
  • create matchers for seqs and sets from single matchers

Attributes

Companion
object
Supertypes
trait ResultLogicalCombinators
trait Results
trait Expectations
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object MatchersImplicits.type
Show all

Attributes

Companion
trait
Supertypes
trait ResultLogicalCombinators
trait Results
trait Expectations
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Self type
class MustExpectable[T] extends Expectable[T]

This kind of expectable can be followed by the verb must to apply a matcher:

This kind of expectable can be followed by the verb must to apply a matcher:

1 must beEqualTo(1)

For convenience, several mustMatcher methods have also been defined as shortcuts to equivalent:

a must matcher

Attributes

Companion
object
Supertypes
class Expectable[T]
class Object
trait Matchable
class Any
Self type

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type

This trait provides implicit definitions to transform any value into a MustExpectable

This trait provides implicit definitions to transform any value into a MustExpectable

Attributes

Companion
object
Supertypes
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Companion
trait
Supertypes
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Companion
object
Supertypes
trait Matchers
trait ResultLogicalCombinators
trait Results
trait Expectations
trait TypedEqual
trait EventuallyResults
trait TryMatchers
trait ValueChecks
trait MapMatchers
trait NumberOfTimes
trait ImplicitParameters
trait LazyParameters
trait AnyMatchers
class Object
trait Matchable
class Any
Show all
Known subtypes
object MustMatchers.type

Attributes

Companion
trait
Supertypes
trait MustMatchers
trait Matchers
trait ResultLogicalCombinators
trait Results
trait Expectations
trait TypedEqual
trait EventuallyResults
trait TryMatchers
trait ValueChecks
trait MapMatchers
trait NumberOfTimes
trait ImplicitParameters
trait LazyParameters
trait AnyMatchers
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Supertypes
trait StandardResults
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Known subtypes

This trait provides implicit definitions to transform any value into a MustExpectable, throwing exceptions when a match fails

This trait provides implicit definitions to transform any value into a MustExpectable, throwing exceptions when a match fails

Attributes

Companion
object
Supertypes
trait StandardResults
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Companion
trait
Supertypes
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Show all

Attributes

Companion
object
Supertypes
trait StandardResults
trait Matchers
trait ResultLogicalCombinators
trait Results
trait Expectations
trait TypedEqual
trait EventuallyResults
trait TryMatchers
trait ValueChecks
trait MapMatchers
trait NumberOfTimes
trait ImplicitParameters
trait LazyParameters
trait AnyMatchers
class Object
trait Matchable
class Any
Show all
Known subtypes
object MustThrownMatchers.type

Attributes

Companion
trait
Supertypes
trait StandardResults
trait Matchers
trait ResultLogicalCombinators
trait Results
trait Expectations
trait TypedEqual
trait EventuallyResults
trait TryMatchers
trait ValueChecks
trait MapMatchers
trait NumberOfTimes
trait ImplicitParameters
trait LazyParameters
trait AnyMatchers
class Object
trait Matchable
class Any
Show all
Self type
case class NeutralMatch[T] extends MatchResult[T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait MatchResult[T]
trait ResultLike
class Object
trait Matchable
class Any
Show all
class NeutralMatcher[T] extends Matcher[T]

This special matcher always return a NeutralMatch MatchResult (an implicit Success)

This special matcher always return a NeutralMatch MatchResult (an implicit Success)

Attributes

Supertypes
trait Matcher[T]
class Object
trait Matchable
class Any
case class NeverMatcher[T]() extends Matcher[T]

This matcher never matches any value of type T

This matcher never matches any value of type T

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[T]
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Show all

this trait doesn't fill-in stack traces

this trait doesn't fill-in stack traces

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type

code generation for the NoMatcherZipOperatorsImplicits trait

code generation for the NoMatcherZipOperatorsImplicits trait

Attributes

Supertypes
class Object
trait Matchable
class Any

This trait can be used to remove aka and must methods on any value

This trait can be used to remove aka and must methods on any value

Attributes

Supertypes
trait TypedEqual
class Object
trait Matchable
class Any
Show all

This trait can be used to remove aka and should methods on any value

This trait can be used to remove aka and should methods on any value

Attributes

Supertypes
trait Expectations
trait TypedEqual
class Object
trait Matchable
class Any
Show all

This trait can be used to cancel the effect of thrown expectations.

This trait can be used to cancel the effect of thrown expectations.

For example it can be mixed-in a mutable.Specification so that no exception is thrown on failure

Attributes

Supertypes
trait Expectations
trait TypedEqual
class Object
trait Matchable
class Any
Show all
trait NoTypedEqual extends TypedEqual

This trait can be used to suppress the TypedEqual implicit

This trait can be used to suppress the TypedEqual implicit

Attributes

Supertypes
trait TypedEqual
class Object
trait Matchable
class Any
Self type
case class NotMatch[T] extends MatchResult[T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait MatchResult[T]
trait ResultLike
class Object
trait Matchable
class Any
Show all
class NotMatcher[T] extends Matcher[T]

This special matcher always return a NotMatch MatchResult. It will negate the next match applied to it.

This special matcher always return a NotMatch MatchResult. It will negate the next match applied to it.

Attributes

Supertypes
trait Matcher[T]
class Object
trait Matchable
class Any

Matchers for Numerical values

Matchers for Numerical values

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object NumericMatchers.type
Show all

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Matchers for Operation values

Matchers for Operation values

Attributes

Companion
object
Supertypes
trait ValueChecks
class Object
trait Matchable
class Any
Show all
Known subtypes
object OperationMatchers.type

Attributes

Companion
trait
Supertypes
trait ValueChecks
class Object
trait Matchable
class Any
Show all
Self type
class OptionLikeCheckedMatcher[F[_], T, U](typeName: String, toOption: F[T] => Option[U], check: ValueCheck[U]) extends Matcher[F[T]]

Attributes

Supertypes
trait Matcher[F[T]]
class Object
trait Matchable
class Any
Known subtypes
class OptionLikeMatcher[F[_], T, U](typeName: String, toOption: F[T] => Option[U]) extends Matcher[F[T]]

Attributes

Supertypes
trait Matcher[F[T]]
class Object
trait Matchable
class Any
Known subtypes
class LeftMatcher[T]
class RightMatcher[T]
class SomeMatcher[T]
trait OptionMatchers extends ValueChecks

Matchers for Options

Matchers for Options

Attributes

Companion
object
Supertypes
trait ValueChecks
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object OptionMatchers.type
Show all

Attributes

Companion
trait
Supertypes
trait ValueChecks
class Object
trait Matchable
class Any
Show all
Self type
class OrMatch[T] extends MatchResult[T]

Attributes

Supertypes
trait MatchResult[T]
trait ResultLike
class Object
trait Matchable
class Any
class OrNotMatch[T] extends MatchResult[T]

Attributes

Supertypes
trait MatchResult[T]
trait ResultLike
class Object
trait Matchable
class Any
class OrderingMatcher[T] extends Matcher[Seq[T]]

Attributes

Supertypes
trait Matcher[Seq[T]]
class Object
trait Matchable
class Any
case class PlusOrMinus[S](n: S, delta: S)

class representing a numeric range

class representing a numeric range

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object MatchersImplicits.type
object ResultImplicits.type
Show all

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Show all
Self type

Matchers for Results

Matchers for Results

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ResultMatchers.type

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Those definitions help specifying the result messages for matchers

Those definitions help specifying the result messages for matchers

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ReturnsSyntax.type

Attributes

Companion
trait
Supertypes
trait Expectations
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Self type
case class RightCheckedMatcher[T](check: ValueCheck[T]) extends OptionLikeCheckedMatcher[Either, T, T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class OptionLikeCheckedMatcher[<none>, T, T]
trait Matcher[<none>[T]]
class Object
trait Matchable
class Any
Show all
case class RightMatcher[T]() extends OptionLikeMatcher[Either, T, T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class OptionLikeMatcher[<none>, T, T]
trait Matcher[<none>[T]]
class Object
trait Matchable
class Any
Show all
trait Scope

This trait represents any Scope that is used to enclose expectations which might be thrown

This trait represents any Scope that is used to enclose expectations which might be thrown

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Scope

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Scope.type

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object MatchersImplicits.type
Show all
Self type

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Show all
Self type
class ShouldExpectable[T] extends Expectable[T]

This kind of expectable can be followed by the verb should to apply a matcher:

This kind of expectable can be followed by the verb should to apply a matcher:

1 should beEqualTo(1)

For convenience, several shouldMatcher methods have also been defined as shortcuts to equivalent:

a should matcher

Attributes

Companion
object
Supertypes
class Expectable[T]
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type

This trait provides implicit definitions to transform any value into a ShouldExpectable

This trait provides implicit definitions to transform any value into a ShouldExpectable

Attributes

Companion
object
Supertypes
trait Expectations
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Companion
trait
Supertypes
trait Expectations
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Companion
object
Supertypes
trait Matchers
trait ResultLogicalCombinators
trait Results
trait Expectations
trait TypedEqual
trait EventuallyResults
trait TryMatchers
trait ValueChecks
trait MapMatchers
trait NumberOfTimes
trait ImplicitParameters
trait LazyParameters
trait AnyMatchers
class Object
trait Matchable
class Any
Show all
Known subtypes
object ShouldMatchers.type

Attributes

Companion
trait
Supertypes
trait Matchers
trait ResultLogicalCombinators
trait Results
trait Expectations
trait TypedEqual
trait EventuallyResults
trait TryMatchers
trait ValueChecks
trait MapMatchers
trait NumberOfTimes
trait ImplicitParameters
trait LazyParameters
trait AnyMatchers
class Object
trait Matchable
class Any
Show all
Self type

This trait provides implicit definitions to transform any value into a ShouldExpectable, throwing exceptions when a match fails

This trait provides implicit definitions to transform any value into a ShouldExpectable, throwing exceptions when a match fails

Attributes

Companion
object
Supertypes
Known subtypes

Attributes

Companion
object
Supertypes
trait StandardResults
trait Matchers
trait ResultLogicalCombinators
trait Results
trait Expectations
trait TypedEqual
trait EventuallyResults
trait TryMatchers
trait ValueChecks
trait MapMatchers
trait NumberOfTimes
trait ImplicitParameters
trait LazyParameters
trait AnyMatchers
class Object
trait Matchable
class Any
Show all
Known subtypes
object ShouldThrownMatchers.type

Attributes

Companion
trait
Supertypes
trait StandardResults
trait Matchers
trait ResultLogicalCombinators
trait Results
trait Expectations
trait TypedEqual
trait EventuallyResults
trait TryMatchers
trait ValueChecks
trait MapMatchers
trait NumberOfTimes
trait ImplicitParameters
trait LazyParameters
trait AnyMatchers
class Object
trait Matchable
class Any
Show all
Self type
case class SignificantFigures(number: Int)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class SignificantTarget[T](target: T, significantFigures: SignificantFigures)(implicit evidence$4: Numeric[T])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class SizedCheckedMatcher[T](check: ValueCheck[Int], sizeWord: String)(implicit evidence$2: Sized[T]) extends Matcher[T]

Attributes

Supertypes
trait Matcher[T]
class Object
trait Matchable
class Any
class SizedMatcher[T](n: Int, sizeWord: String)(implicit evidence$1: Sized[T]) extends Matcher[T]

Attributes

Supertypes
trait Matcher[T]
class Object
trait Matchable
class Any
case class SomeCheckedMatcher[T](check: ValueCheck[T]) extends OptionLikeCheckedMatcher[Option, T, T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class OptionLikeCheckedMatcher[Option, T, T]
trait Matcher[Option[T]]
class Object
trait Matchable
class Any
Show all
case class SomeMatcher[T]() extends OptionLikeMatcher[Option, T, T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class OptionLikeMatcher[Option, T, T]
trait Matcher[Option[T]]
class Object
trait Matchable
class Any
Show all

This trait can be used in conjunction with Pattern matchers:

This trait can be used in conjunction with Pattern matchers:

List(1, 2) must be like { case List(a, b) => ok } List(1, 2) must be like { case List(a, b) => ko("unexpected") }

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Show all
Self type

This trait evaluates expectations and stores them in a local variable for further usage

This trait evaluates expectations and stores them in a local variable for further usage

Attributes

Supertypes
trait Expectations
trait TypedEqual
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class StringMatcher(m: AdaptableMatcher[Any])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

The StringMatchers trait provides matchers which are applicable to String objects

The StringMatchers trait provides matchers which are applicable to String objects

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object StringMatchers.type
Show all

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Thrown expectations will throw a FailureException if a match fails

Thrown expectations will throw a FailureException if a match fails

This trait can be extended to be used in another framework like ScalaTest:

trait ScalaTestExpectations extends ThrownExpectations { override protected def checkFailure[T](m: =>MatchResult[T]) = { m match { case f @ MatchFailure(ok, ko, _, _, _) => throw new TestFailedException(f.message, f.exception, 0) case _ => () } m } }

Attributes

Companion
object
Supertypes
trait StandardResults
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Companion
trait
Supertypes
trait StandardResults
class Object
trait Matchable
class Any
Show all
Self type

Lightweight ThrownExpectations trait with less implicit methods

Lightweight ThrownExpectations trait with less implicit methods

Attributes

Supertypes
class Object
trait Matchable
class Any
Show all
Known subtypes

This trait can be used to integrate failures and skip messages into specs2

This trait can be used to integrate failures and skip messages into specs2

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Show all
Known subtypes
trait ThrownStandardResults extends StandardResults, ExpectationsCreation

Attributes

Supertypes
trait StandardResults
class Object
trait Matchable
class Any
Show all
Known subtypes
trait TraversableMatchers extends LazyParameters, ImplicitParameters, NumberOfTimes

Matchers for traversables

Matchers for traversables

Attributes

Companion
object
Supertypes
trait NumberOfTimes
trait ImplicitParameters
trait LazyParameters
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object TraversableMatchers.type
Show all

Attributes

Companion
trait
Supertypes
trait NumberOfTimes
trait ImplicitParameters
trait LazyParameters
class Object
trait Matchable
class Any
Show all
Self type
case class TryFailureCheckedMatcher[T](check: ValueCheck[Throwable]) extends OptionLikeCheckedMatcher[Try, T, Throwable]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class OptionLikeCheckedMatcher[Try, T, Throwable]
trait Matcher[Try[T]]
class Object
trait Matchable
class Any
Show all
case class TryFailureMatcher[T]() extends OptionLikeMatcher[Try, T, Throwable]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class OptionLikeMatcher[Try, T, Throwable]
trait Matcher[Try[T]]
class Object
trait Matchable
class Any
Show all
trait TryMatchers

Matchers for util.Try instances

Matchers for util.Try instances

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object TryMatchers.type
Show all
object TryMatchers extends TryMatchers

Attributes

Companion
trait
Supertypes
trait TryMatchers
class Object
trait Matchable
class Any
Self type
case class TrySuccessCheckedMatcher[T](check: ValueCheck[T]) extends OptionLikeCheckedMatcher[Try, T, T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class OptionLikeCheckedMatcher[Try, T, T]
trait Matcher[Try[T]]
class Object
trait Matchable
class Any
Show all
case class TrySuccessMatcher[T]() extends OptionLikeMatcher[Try, T, T]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class OptionLikeMatcher[Try, T, T]
trait Matcher[Try[T]]
class Object
trait Matchable
class Any
Show all
trait TypedEqual

This trait adds some implicits to create expectations with the === sign

This trait adds some implicits to create expectations with the === sign

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type

Attributes

Companion
trait
Supertypes
trait TypedEqual
class Object
trait Matchable
class Any
Show all
Self type
TypedEqual.type
trait ValueCheck[T]

Common interface for checks of a value of type T:

Common interface for checks of a value of type T:

  • a expected single value of type T
  • a Matcher[T]
  • a function returning a type R having an AsResult instance

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type
object ValueCheck extends ValueChecks

Attributes

Companion
trait
Supertypes
trait ValueChecks
class Object
trait Matchable
class Any
Show all
Self type
ValueCheck.type

implicit conversions used to create ValueChecks

implicit conversions used to create ValueChecks

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object OperationMatchers.type
object OptionMatchers.type
object ValueCheck.type
object ValueChecks.type
Show all
object ValueChecks extends ValueChecks

Attributes

Companion
trait
Supertypes
trait ValueChecks
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Matchers1
trait ValueChecks
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object OperationMatchers.type
object OptionMatchers.type
object ValueCheck.type
object ValueChecks.type
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Matchers1
trait ValueChecks
trait Matchers
object Matchers.type
trait MustMatchers
object MustMatchers.type
object MustThrownMatchers.type
object ShouldMatchers.type
object ShouldThrownMatchers.type
object OperationMatchers.type
object OptionMatchers.type
object ValueCheck.type
object ValueChecks.type
Show all

Inherited classlikes

implicit class Returns[T](t: => T)(implicit evidence$1: AsResult[T])

Attributes

Inherited from:
ReturnsSyntax
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

protected 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

Inherited from:
ExpectationsCreation
protected 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

Inherited from:
ExpectationsCreation
protected 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

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: Option[String => String]): Expectable[T]

Attributes

Returns

an Expectable with a description function

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: String => String): Expectable[T]

Attributes

Returns

an Expectable with a description function

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: => String): Expectable[T]

Attributes

Returns

an Expectable with a description

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T): Expectable[T]

Attributes

Returns

an Expectable

Inherited from:
ExpectationsCreation
def createExpectableWithShowAs[T](t: => T, showAs: => String): Expectable[T]

Attributes

Returns

an Expectable with a function to show the element T

Inherited from:
ExpectationsCreation
protected 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

Inherited from:
ExpectationsCreation
protected def sandboxMatchResult[T](mr: => MatchResult[T]): MatchResult[T]

Attributes

Returns

the match result without any side-effects

Inherited from:
ExpectationsCreation
protected 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

Inherited from:
MatchResultStackTrace

Implicits

Inherited implicits

final implicit def Returns[T : AsResult](t: => T): Returns[T]

Attributes

Inherited from:
ReturnsSyntax