Package

org.specs2

text

Permalink

package text

Visibility
  1. Public
  2. All

Type Members

  1. trait AnsiColors extends AnyRef

    Permalink

    This trait provides AnsiColors codes for the OutputReporter

    This trait provides AnsiColors codes for the OutputReporter

    See also

    http://en.wikipedia.org/wiki/ANSI_escape_code

  2. trait Colors extends AnyRef

    Permalink

    This trait defines the colors which must be used to output text on the console

  3. class ColorsFromSystemProperties extends ConsoleColors with ColorsMap

    Permalink
  4. trait ColorsMap extends AnyRef

    Permalink

    Definition of abbreviated color names

  5. class ConsoleColors extends AnsiColors with Colors

    Permalink

    This class defines the colors to use to print out text on the Console with defaults as AnsiColors for a dark background console

  6. trait ContentDifference extends AnyRef

    Permalink

    This trait represents the difference between 2 "contents"

  7. trait DiffShortener extends AnyRef

    Permalink

    This object help shortening strings between differences when the strings are too long

  8. trait DifferenceFilter extends ((Seq[_], Seq[_])) ⇒ (Seq[_], Seq[_])

    Permalink

    A trait to filter results of a difference check

  9. trait DifferenceFilters extends AnyRef

    Permalink

    This trait provides some syntactic sugar to create a DifferenceFilter to take only the first n differences:

    This trait provides some syntactic sugar to create a DifferenceFilter to take only the first n differences:

    10.differences == FirstNDifferencesFilter(10)

  10. sealed trait DifferentLine extends AnyRef

    Permalink

    case classes for the representation of lines which are different: not found, missing, misplaced

  11. trait EditDistance extends AnyRef

    Permalink

    The EditDistance trait provides methods to compute and display the shortest distance between 2 strings.

    The EditDistance trait provides methods to compute and display the shortest distance between 2 strings.

    Usage:

    showDistance("kitten", "sitting") // returns ("(k)itt(e)n", "(s)itt(i)n(g)")
    
    // with different separators
    showDistance("kitten", "sitting", "[]") // returns ("[k]itt[e]n", "[s]itt[i]n[g]")
    

  12. case class FirstDifferences(n: Int) extends SomeDifferences with Product with Serializable

    Permalink

    return the first n differences

  13. trait FromString[T] extends AnyRef

    Permalink

    This typeclass is used to describe any instance which can be decoded from a String

  14. class Interpolated extends InterpolatedParsers

    Permalink

    this class extracts interpolated expressions from an interpolated string, given the string content and the text pieces in between the interpolated expressions

  15. trait InterpolatedParsers extends JavaTokenParsers

    Permalink
  16. class InvertedColors extends ConsoleColors

    Permalink

    This color scheme can be used with a white background

  17. trait LinesContent[L1] extends AnyRef

    Permalink

    Any type T with a name and representable as a sequence of Strings

  18. case class LinesContentDifference(lines1: Seq[String], lines2: Seq[String], partial: Boolean = false, unordered: Boolean = false, reportMisplaced: Boolean = false) extends ContentDifference with Product with Serializable

    Permalink

    This class shows the differences between 2 sequence of lines.

    This class shows the differences between 2 sequence of lines.

    - if partial is true we only expect some of the lines of lines2 to be in lines1 - if unordered is true we only expect the lines of lines2 to appear in any order in lines1

  19. case class MisplacedLine(line: String, lineNumber: Int) extends DifferentLine with Product with Serializable

    Permalink
  20. case class MissingLine(line: String, lineNumber: Int) extends DifferentLine with Product with Serializable

    Permalink
  21. trait NoDifferenceFilters extends DifferenceFilters

    Permalink

    mix-in this trait to remove the implicit provided by the DifferenceFilters trait

  22. case class NotFoundLine(line: String, lineNumber: Int) extends DifferentLine with Product with Serializable

    Permalink
  23. abstract class RegexExtractor[P, T] extends AnyRef

    Permalink

    A Regular expression step which takes a text and extracts meaningful values according to a regular expression:

    A Regular expression step which takes a text and extracts meaningful values according to a regular expression:

    - either a user-defined expression for the *full text to extract*: e.g. "Given the following number: (.*)" - or a default regex for groups capturing value delimited with ${}

    It provides methods to extract either all the groups as a list, or a number of values as a tuple

  24. trait Sentences extends AnyRef

    Permalink

    This does some simple replacements in sentences to negate them.

    This does some simple replacements in sentences to negate them.

    For example: the cat must sleep => the cat must not sleep

  25. case class SeqLinesContent[A]() extends LinesContent[Seq[A]] with Product with Serializable

    Permalink

    Default implementation for reading lines out of a Seq

  26. class SmartColors extends ConsoleColors with ColorsMap with SystemProperties

    Permalink

    This class checks if colors must be taken from system properties

  27. class SomeDifferences extends DifferenceFilter

    Permalink

    return some of the differences, filtered with a function

  28. case class TextTable(header: Seq[String], lines: Seq[Seq[String]], separator: String = "|") extends Product with Serializable

    Permalink

    Textual representation of a table with a table and some lines.

    Textual representation of a table with a table and some lines.

    It is expected that the size of the header and all the lines are the same.

    The main purpose of this class is to display equal-length cells on each column

Value Members

  1. object AllDifferences extends SomeDifferences

    Permalink

    return all the differences

  2. object AnsiColors extends AnsiColors

    Permalink
  3. object DiffShortener extends DiffShortener

    Permalink
  4. object EditDistance extends EditDistance

    Permalink
  5. object FromString

    Permalink
  6. object InterpolatedParsers extends InterpolatedParsers

    Permalink
  7. object RegexExtractor

    Permalink
  8. object Sentences extends Sentences

    Permalink
  9. object TextTable extends Serializable

    Permalink

Ungrouped