org.specs2

execute

package execute

Visibility
  1. Public
  2. All

Type Members

  1. class AnyValueAsResult[T] extends AsResult[T]

    Type class to transform any value to a Result

  2. trait AsResult[T] extends AnyRef

    Typeclass trait for anything that can be transformed to a Result

  3. case class DecoratedResult[+T](decorator: T, result: Result) extends Result with Product with Serializable

    This result allows to embed additional data with a given result for further display

  4. case class DecoratedResultException(result: DecoratedResult[_]) extends Exception with Product with Serializable

    this class allows to throw a result that's decorated with additional information in an Exception

  5. sealed trait Details extends AnyRef

    Trait to model detailed information for failures so that smart differences can be computed

  6. case class Error(m: String, t: Throwable) extends Result with ResultStackTrace with Product with Serializable

    This class represents an exception occurring during an execution.

  7. case class ErrorException(f: Error) extends Exception with Product with Serializable

    this class allows to throw an Error result in an Exception

  8. trait EventuallyResults extends AnyRef

    This trait adds the possibility to retry a given value, convertible to a result, until it succeeds.

  9. trait Executable extends AnyRef

    Trait for anything that can be executed to return a Result

  10. trait ExecutionTimeFactor extends AnyRef

    Get the time factor from an ExecutionContext or an ExecutorService

  11. case class Failure(m: String = "", e: String = "", stackTrace: List[StackTraceElement] = ..., details: Details = NoDetails) extends Result with ResultStackTrace with Product with Serializable

    This class represents the failure of an execution.

  12. case class FailureDetails(actual: String, expected: String) extends Details with Product with Serializable

  13. case class FailureException(f: Failure) extends Exception with Product with Serializable

    this class allows to throw a failure result in an Exception

  14. case class FailureMapDetails(actual: Map[Any, Any], expected: Map[Any, Any]) extends Details with Product with Serializable

  15. case class FailureSeqDetails(actual: Seq[Any], expected: Seq[Any]) extends Details with Product with Serializable

  16. case class FailureSetDetails(actual: Set[Any], expected: Set[Any]) extends Details with Product with Serializable

  17. class Function0Result extends AnyRef

    This class is used to delay the execution of a result

  18. trait Isolable extends AnyRef

    This trait models elements which can be executed in a brand new context with new local variables It is used to execute examples in a new specification when needed

  19. trait NoPendingUntilFixed extends PendingUntilFixed

    use this trait to remove the pending until fixed implicit conversion

  20. case class ParseError(message: String) extends TypecheckResult with Product with Serializable

  21. case class Pending(m: String = "") extends Result with Product with Serializable

    Pending result

  22. case class PendingException(f: Pending) extends Exception with Product with Serializable

    this class allows to throw a pending result in an Exception

  23. trait PendingUntilFixed extends AnyRef

    This function allows to mark the body of an example as pending until it is fixed.

  24. sealed abstract class Result extends AnyRef

    The result of an execution, either:

  25. trait ResultExecution extends AnyRef

    This trait executes a Result and returns an appropriate value when a specs2 exception is thrown

  26. trait ResultImplicits extends AnyRef

    This trait adds some implicits to easily fold sequences of results

  27. trait ResultLike extends AnyRef

    This trait can be used for anything that can be converted to a Result.

  28. trait ResultLogicalCombinators extends Results

    This trait provides logical combinators to Results: and, or, not

  29. trait ResultStackTrace extends HasStackTrace

    The stacktrace for a Result

  30. trait Results extends AnyRef

  31. case class ScissorsCutter(cutMarker: String = Snippet.scissorsMarker, cutMarkerFormat: String = Snippet.scissorsMarkerFormat) extends (String) ⇒ String with Product with Serializable

    Implementation of a function to cut pieces of code by using some comments as markers

  32. case class SkipException(f: Skipped) extends Exception with Product with Serializable

    this class allows to throw a skipped result in an Exception

  33. case class Skipped(m: String = "", e: String = "") extends Result with Product with Serializable

    Skipped result

  34. case class Snippet[T](code: () ⇒ T, codeExpression: Option[String] = scala.None, params: SnippetParams[T] = ...) extends Product with Serializable

    Captured snippet of code with: a value of type T, a string representing the expression, captured by a macro, some evaluation and display parameters

  35. case class SnippetParams[T](trimExpression: (String) ⇒ String = Snippet.trimApproximatedSnippet, cutter: (String) ⇒ String = ..., asCode: (String, String) ⇒ String = ..., prompt: (String) ⇒ String = Snippet.greaterThanPrompt, evalCode: Boolean = false, verify: Option[(T) ⇒ Result] = scala.None) extends Product with Serializable

    Evaluation and display parameters for a Snippet.

  36. trait Snippets extends AnyRef

    Snippets of code can be extracted from interpolated specification strings.

  37. trait StandardResults extends AnyRef

    This trait provides standard results which can be used in Fragments bodies

  38. case class Success(m: String = "", exp: String = "") extends Result with Product with Serializable

    This class represents the success of an execution

  39. trait TimeFactor extends AnyRef

    trait for setting a time factor on an ExecutionContext or an ExecutorService

  40. case class TypecheckError(message: String) extends TypecheckResult with Product with Serializable

  41. sealed trait TypecheckResult extends AnyRef

  42. case class Typechecked(code: String, result: TypecheckResult) extends Product with Serializable

    result of the typechecking of some code

  43. case class UnexpectedTypecheckError(message: String) extends TypecheckResult with Product with Serializable

Value Members

  1. object AsResult

  2. object BestMatching

    Use of the Hopcroft-Karp (https://en.

  3. object CanTypecheckLiteralsOnly extends TypecheckResult

  4. object Error extends Product with Serializable

    This object allows to create an Error from an exception

  5. object EventuallyResults extends EventuallyResults

  6. object ExecutionTimeFactor

    Set a time factor on an ExecutionContext or an ExecutorService by decorating it with the TimeFactor trait

  7. object FromJUnitAssertionError extends Details with Product with Serializable

  8. object FromNotImplementedError extends Details with Product with Serializable

  9. object Function0Result

  10. object NoDetails extends Details with Product with Serializable

  11. object PendingUntilFixed extends PendingUntilFixed

  12. object Result

  13. object ResultExecution extends ResultExecution

  14. object ResultImplicits extends ResultImplicits

  15. object ResultLogicalCombinators extends ResultLogicalCombinators

  16. object Results extends Results

  17. object Snippet extends Serializable

  18. object Snippets extends Snippets

  19. object StandardResults extends StandardResults

  20. object Success extends Serializable

    Companion object to the Success class providing a method to set the expectations number

  21. object Typecheck

    This macro checks if some code can be parsed and typechecks ok

  22. object TypecheckSuccess extends TypecheckResult

  23. object Typechecked extends Serializable

Ungrouped