Object

catslib

ApplySection

Related Doc: package catslib

Permalink

object ApplySection extends FlatSpec with Matchers with Section

Apply extends the Functor type class (which features the familiar map function) with a new function ap. The ap function is similar to map in that we are transforming a value in a context (a context being the F in F[A]; a context can be Option, List or Future for example). However, the difference between ap and map is that for ap the function that takes care of the transformation is of type F[A => B], whereas for map it is A => B:

Here are the implementations of Apply for the Option and List types:

import cats._

implicit val optionApply: Apply[Option] = new Apply[Option] {
def ap[A, B](f: Option[A => B])(fa: Option[A]): Option[B] =
 fa.flatMap (a => f.map (ff => ff(a)))

def map[A,B](fa: Option[A])(f: A => B): Option[B] = fa map f

def product[A, B](fa: Option[A], fb: Option[B]): Option[(A, B)] =
 fa.flatMap(a => fb.map(b => (a, b)))
}

implicit val listApply: Apply[List] = new Apply[List] {
def ap[A, B](f: List[A => B])(fa: List[A]): List[B] =
 fa.flatMap (a => f.map (ff => ff(a)))

def map[A,B](fa: List[A])(f: A => B): List[B] = fa map f

def product[A, B](fa: List[A], fb: List[B]): List[(A, B)] =
 fa.zip(fb)
}
Linear Supertypes
Section, Matchers, Explicitly, MatcherWords, Tolerance, FlatSpec, FlatSpecLike, Documenting, Alerting, Notifying, Informing, CanVerb, MustVerb, ShouldVerb, TestRegistration, Suite, Serializable, AbstractSuite, Assertions, TripleEquals, TripleEqualsSupport, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ApplySection
  2. Section
  3. Matchers
  4. Explicitly
  5. MatcherWords
  6. Tolerance
  7. FlatSpec
  8. FlatSpecLike
  9. Documenting
  10. Alerting
  11. Notifying
  12. Informing
  13. CanVerb
  14. MustVerb
  15. ShouldVerb
  16. TestRegistration
  17. Suite
  18. Serializable
  19. AbstractSuite
  20. Assertions
  21. TripleEquals
  22. TripleEqualsSupport
  23. AnyRef
  24. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. final class AWord extends AnyRef

    Permalink
    Definition Classes
    Matchers
  2. final class AnWord extends AnyRef

    Permalink
    Definition Classes
    Matchers
  3. sealed class AnyShouldWrapper[T] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  4. class AssertionsHelper extends AnyRef

    Permalink
    Definition Classes
    Assertions
  5. final class BehaviorWord extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  6. class CheckingEqualizer[L] extends AnyRef

    Permalink
    Definition Classes
    TripleEqualsSupport
  7. class DecidedByEquality[A] extends Equality[A]

    Permalink
    Definition Classes
    Explicitly
  8. class DecidedWord extends AnyRef

    Permalink
    Definition Classes
    Explicitly
  9. class DeterminedByEquivalence[T] extends Equivalence[T]

    Permalink
    Definition Classes
    Explicitly
  10. class DeterminedWord extends AnyRef

    Permalink
    Definition Classes
    Explicitly
  11. class Equalizer[L] extends AnyRef

    Permalink
    Definition Classes
    TripleEqualsSupport
  12. final class HavePropertyMatcherGenerator extends AnyRef

    Permalink
    Definition Classes
    Matchers
  13. final class IgnoreVerbString extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  14. final class IgnoreVerbStringTaggedAs extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  15. final class IgnoreWord extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  16. final class InAndIgnoreMethods extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  17. final class InAndIgnoreMethodsAfterTaggedAs extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  18. final class ItVerbString extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  19. final class ItVerbStringTaggedAs extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  20. final class ItWord extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  21. final class KeyWord extends AnyRef

    Permalink
    Definition Classes
    Matchers
  22. class LegacyCheckingEqualizer[L] extends AnyRef

    Permalink
    Definition Classes
    TripleEqualsSupport
  23. class LegacyEqualizer[L] extends AnyRef

    Permalink
    Definition Classes
    TripleEqualsSupport
  24. trait NoArgTest extends () ⇒ Outcome with TestData

    Permalink
    Attributes
    protected
    Definition Classes
    Suite
  25. final class PlusOrMinusWrapper[T] extends AnyRef

    Permalink
    Definition Classes
    Tolerance
  26. final class RegexWord extends AnyRef

    Permalink
    Definition Classes
    Matchers
  27. final class RegexWrapper extends AnyRef

    Permalink
    Definition Classes
    Matchers
  28. class ResultOfBeWordForAny[T] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  29. sealed class ResultOfBeWordForCollectedAny[T] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  30. final class ResultOfBeWordForCollectedArray[T] extends ResultOfBeWordForCollectedAny[Array[T]]

    Permalink
    Definition Classes
    Matchers
  31. final class ResultOfCollectedAny[T] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  32. final class ResultOfContainWordForCollectedAny[T] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  33. final class ResultOfEndWithWordForCollectedString extends AnyRef

    Permalink
    Definition Classes
    Matchers
  34. final class ResultOfEndWithWordForString extends AnyRef

    Permalink
    Definition Classes
    Matchers
  35. final class ResultOfEvaluatingApplication extends AnyRef

    Permalink
    Definition Classes
    Matchers
  36. final class ResultOfFullyMatchWordForCollectedString extends AnyRef

    Permalink
    Definition Classes
    Matchers
  37. final class ResultOfFullyMatchWordForString extends AnyRef

    Permalink
    Definition Classes
    Matchers
  38. final class ResultOfHaveWordForCollectedExtent[A] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  39. final class ResultOfHaveWordForExtent[A] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  40. final class ResultOfIncludeWordForCollectedString extends AnyRef

    Permalink
    Definition Classes
    Matchers
  41. final class ResultOfIncludeWordForString extends AnyRef

    Permalink
    Definition Classes
    Matchers
  42. sealed class ResultOfNotWordForCollectedAny[T] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  43. final class ResultOfProduceInvocation[T] extends AnyRef

    Permalink
    Definition Classes
    Matchers
  44. final class ResultOfStartWithWordForCollectedString extends AnyRef

    Permalink
    Definition Classes
    Matchers
  45. final class ResultOfStartWithWordForString extends AnyRef

    Permalink
    Definition Classes
    Matchers
  46. trait StringCanWrapperForVerb extends AnyRef

    Permalink
    Definition Classes
    CanVerb
  47. trait StringMustWrapperForVerb extends AnyRef

    Permalink
    Definition Classes
    MustVerb
  48. final class StringShouldWrapper extends AnyShouldWrapper[String] with org.scalatest.Matchers.StringShouldWrapperForVerb

    Permalink
    Definition Classes
    Matchers
  49. trait StringShouldWrapperForVerb extends AnyRef

    Permalink
    Definition Classes
    ShouldVerb
  50. class TheAfterWord extends AnyRef

    Permalink
    Definition Classes
    Explicitly
  51. final class TheSameInstanceAsPhrase extends AnyRef

    Permalink
    Definition Classes
    Matchers
  52. final class TheyVerbString extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  53. final class TheyVerbStringTaggedAs extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  54. final class TheyWord extends AnyRef

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  55. final class ValueWord extends AnyRef

    Permalink
    Definition Classes
    Matchers

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. def !==[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  3. def !==(right: Null): TripleEqualsInvocation[Null]

    Permalink
    Definition Classes
    TripleEqualsSupport
  4. def !==[T](right: T): TripleEqualsInvocation[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  5. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  6. def <[T](right: T)(implicit arg0: Ordering[T]): ResultOfLessThanComparison[T]

    Permalink
    Definition Classes
    Matchers
  7. def <=[T](right: T)(implicit arg0: Ordering[T]): ResultOfLessThanOrEqualToComparison[T]

    Permalink
    Definition Classes
    Matchers
  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def ===[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  10. def ===(right: Null): TripleEqualsInvocation[Null]

    Permalink
    Definition Classes
    TripleEqualsSupport
  11. def ===[T](right: T): TripleEqualsInvocation[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  12. def >[T](right: T)(implicit arg0: Ordering[T]): ResultOfGreaterThanComparison[T]

    Permalink
    Definition Classes
    Matchers
  13. def >=[T](right: T)(implicit arg0: Ordering[T]): ResultOfGreaterThanOrEqualToComparison[T]

    Permalink
    Definition Classes
    Matchers
  14. def a[T](implicit arg0: Manifest[T]): ResultOfATypeInvocation[T]

    Permalink
    Definition Classes
    Matchers
  15. val a: AWord

    Permalink
    Definition Classes
    Matchers
  16. val after: TheAfterWord

    Permalink
    Definition Classes
    Explicitly
  17. def alert: Alerter

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike → Alerting
  18. def all(xs: String)(implicit collecting: Collecting[Char, String]): ResultOfCollectedAny[Char]

    Permalink
    Definition Classes
    Matchers
  19. def all[K, V, JMAP[k, v] <: Map[k, v]](xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]]): ResultOfCollectedAny[Entry[K, V]]

    Permalink
    Definition Classes
    Matchers
  20. def all[E, C[_]](xs: C[E])(implicit collecting: Collecting[E, C[E]]): ResultOfCollectedAny[E]

    Permalink
    Definition Classes
    Matchers
  21. def allOf(firstEle: Any, secondEle: Any, remainingEles: Any*): ResultOfAllOfApplication

    Permalink
    Definition Classes
    Matchers
  22. def an[T](implicit arg0: Manifest[T]): ResultOfAnTypeInvocation[T]

    Permalink
    Definition Classes
    Matchers
  23. val an: AnWord

    Permalink
    Definition Classes
    Matchers
  24. def applyAp(res0: Option[String], res1: Option[Int], res2: Option[Int], res3: Option[Int], res4: Option[Int]): Unit

    Permalink

    The ap method is a method that Functor does not have:

    ap

    The ap method is a method that Functor does not have:

  25. def applyApn(res0: Option[Int], res1: Option[Int], res2: Option[Int]): Unit

    Permalink

    Apply also offers variants of ap.

    ap2, ap3, etc

    Apply also offers variants of ap. The functions apN (for N between 2 and 22) accept N arguments where ap accepts 1.

    Note that if any of the arguments of this example is None, the final result is None as well. The effects of the context we are operating on are carried through the entire computation:

  26. def applyBuilderSyntax(res0: Option[Int], res1: Option[Int], res2: Option[Int], res3: Option[Int], res4: Option[(Int, Int)], res5: Option[(Int, Int, Int)]): Unit

    Permalink

    The |@| operator offers an alternative syntax for the higher-arity Apply functions (apN, mapN and tupleN).

    apply builder syntax

    The |@| operator offers an alternative syntax for the higher-arity Apply functions (apN, mapN and tupleN). In order to use it, first import cats.syntax.all._ or cats.syntax.apply._.

    All instances created by |@| have map, ap, and tupled methods of the appropriate arity:

  27. def applyComposes(res0: List[Option[Int]]): Unit

    Permalink

    And like functors, Apply instances also compose:

    compose

    And like functors, Apply instances also compose:

  28. def applyExtendsFunctor(res0: Option[String], res1: Option[Int], res2: Option[Int]): Unit

    Permalink

    Since Apply extends Functor, we can use the map method from Functor:

    map

    Since Apply extends Functor, we can use the map method from Functor:

  29. def applyMapn(res0: Option[Int], res1: Option[Int]): Unit

    Permalink

    Similarly, mapN functions are available:

    map2, map3, etc

    Similarly, mapN functions are available:

  30. def applyTuplen(res0: Option[(Int, Int)], res1: Option[(Int, Int, Int)]): Unit

    Permalink

    Similarly, tupleN functions are available:

    tuple2, tuple3, etc

    Similarly, tupleN functions are available:

  31. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  32. macro def assert(condition: Boolean, clue: Any): Unit

    Permalink
    Definition Classes
    Assertions
  33. macro def assert(condition: Boolean): Unit

    Permalink
    Definition Classes
    Assertions
  34. macro def assertCompiles(code: String): Unit

    Permalink
    Definition Classes
    Assertions
  35. macro def assertDoesNotCompile(code: String): Unit

    Permalink
    Definition Classes
    Assertions
  36. def assertResult(expected: Any)(actual: Any): Unit

    Permalink
    Definition Classes
    Assertions
  37. def assertResult(expected: Any, clue: Any)(actual: Any): Unit

    Permalink
    Definition Classes
    Assertions
  38. macro def assertTypeError(code: String): Unit

    Permalink
    Definition Classes
    Assertions
  39. val assertionsHelper: AssertionsHelper

    Permalink
    Definition Classes
    Assertions
  40. macro def assume(condition: Boolean, clue: Any): Unit

    Permalink
    Definition Classes
    Assertions
  41. macro def assume(condition: Boolean): Unit

    Permalink
    Definition Classes
    Assertions
  42. def atLeast(num: Int, xs: String)(implicit collecting: Collecting[Char, String]): ResultOfCollectedAny[Char]

    Permalink
    Definition Classes
    Matchers
  43. def atLeast[K, V, JMAP[k, v] <: Map[k, v]](num: Int, xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]]): ResultOfCollectedAny[Entry[K, V]]

    Permalink
    Definition Classes
    Matchers
  44. def atLeast[E, C[_]](num: Int, xs: C[E])(implicit collecting: Collecting[E, C[E]]): ResultOfCollectedAny[E]

    Permalink
    Definition Classes
    Matchers
  45. def atLeastOneOf(firstEle: Any, secondEle: Any, remainingEles: Any*): ResultOfAtLeastOneOfApplication

    Permalink
    Definition Classes
    Matchers
  46. def atMost(num: Int, xs: String)(implicit collecting: Collecting[Char, String]): ResultOfCollectedAny[Char]

    Permalink
    Definition Classes
    Matchers
  47. def atMost[K, V, JMAP[k, v] <: Map[k, v]](num: Int, xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]]): ResultOfCollectedAny[Entry[K, V]]

    Permalink
    Definition Classes
    Matchers
  48. def atMost[E, C[_]](num: Int, xs: C[E])(implicit collecting: Collecting[E, C[E]]): ResultOfCollectedAny[E]

    Permalink
    Definition Classes
    Matchers
  49. def atMostOneOf(firstEle: Any, secondEle: Any, remainingEles: Any*): ResultOfAtMostOneOfApplication

    Permalink
    Definition Classes
    Matchers
  50. val be: BeWord

    Permalink
    Definition Classes
    MatcherWords
  51. val behave: BehaveWord

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  52. val behavior: BehaviorWord

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  53. def between(from: Int, upTo: Int, xs: String)(implicit collecting: Collecting[Char, String]): ResultOfCollectedAny[Char]

    Permalink
    Definition Classes
    Matchers
  54. def between[K, V, JMAP[k, v] <: Map[k, v]](from: Int, upTo: Int, xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]]): ResultOfCollectedAny[Entry[K, V]]

    Permalink
    Definition Classes
    Matchers
  55. def between[E, C[_]](from: Int, upTo: Int, xs: C[E])(implicit collecting: Collecting[E, C[E]]): ResultOfCollectedAny[E]

    Permalink
    Definition Classes
    Matchers
  56. def cancel(cause: Throwable): Nothing

    Permalink
    Definition Classes
    Assertions
  57. def cancel(message: String, cause: Throwable): Nothing

    Permalink
    Definition Classes
    Assertions
  58. def cancel(message: String): Nothing

    Permalink
    Definition Classes
    Assertions
  59. def cancel(): Nothing

    Permalink
    Definition Classes
    Assertions
  60. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. val compile: CompileWord

    Permalink
    Definition Classes
    MatcherWords
  62. val contain: ContainWord

    Permalink
    Definition Classes
    MatcherWords
  63. def conversionCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], cnv: (B) ⇒ A): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  64. def convertEquivalenceToAToBConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: <:<[A, B]): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  65. def convertEquivalenceToAToBConversionConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: (A) ⇒ B): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  66. def convertEquivalenceToBToAConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: <:<[B, A]): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  67. def convertEquivalenceToBToAConversionConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: (B) ⇒ A): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  68. implicit def convertNumericToPlusOrMinusWrapper[T](pivot: T)(implicit arg0: Numeric[T]): PlusOrMinusWrapper[T]

    Permalink
    Definition Classes
    Tolerance
  69. implicit def convertSymbolToHavePropertyMatcherGenerator(symbol: Symbol): HavePropertyMatcherGenerator

    Permalink
    Definition Classes
    Matchers
  70. implicit def convertToAnyShouldWrapper[T](o: T): AnyShouldWrapper[T]

    Permalink
    Definition Classes
    Matchers
  71. def convertToCheckingEqualizer[T](left: T): CheckingEqualizer[T]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  72. implicit def convertToEqualizer[T](left: T): Equalizer[T]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  73. implicit def convertToInAndIgnoreMethods(resultOfStringPassedToVerb: ResultOfStringPassedToVerb): InAndIgnoreMethods

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  74. implicit def convertToInAndIgnoreMethodsAfterTaggedAs(resultOfTaggedAsInvocation: ResultOfTaggedAsInvocation): InAndIgnoreMethodsAfterTaggedAs

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  75. def convertToLegacyCheckingEqualizer[T](left: T): LegacyCheckingEqualizer[T]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  76. def convertToLegacyEqualizer[T](left: T): LegacyEqualizer[T]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  77. implicit def convertToRegexWrapper(o: Regex): RegexWrapper

    Permalink
    Definition Classes
    Matchers
  78. implicit def convertToStringCanWrapper(o: String): StringCanWrapperForVerb

    Permalink
    Definition Classes
    CanVerb
  79. implicit def convertToStringMustWrapper(o: String): StringMustWrapperForVerb

    Permalink
    Definition Classes
    MustVerb
  80. implicit def convertToStringShouldWrapper(o: String): StringShouldWrapper

    Permalink
    Definition Classes
    Matchers → ShouldVerb
  81. val decided: DecidedWord

    Permalink
    Definition Classes
    Explicitly
  82. def defaultEquality[A]: Equality[A]

    Permalink
    Definition Classes
    TripleEqualsSupport
  83. val defined: DefinedWord

    Permalink
    Definition Classes
    MatcherWords
  84. def definedAt[T](right: T): ResultOfDefinedAt[T]

    Permalink
    Definition Classes
    Matchers
  85. val determined: DeterminedWord

    Permalink
    Definition Classes
    Explicitly
  86. val empty: EmptyWord

    Permalink
    Definition Classes
    MatcherWords
  87. val endWith: EndWithWord

    Permalink
    Definition Classes
    MatcherWords
  88. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  89. def equal(o: Null): Matcher[AnyRef]

    Permalink
    Definition Classes
    Matchers
  90. def equal[T](spread: Spread[T]): Matcher[T]

    Permalink
    Definition Classes
    Matchers
  91. def equal(right: Any): MatcherFactory1[Any, Equality]

    Permalink
    Definition Classes
    MatcherWords
  92. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  93. def every(xs: String)(implicit collecting: Collecting[Char, String]): ResultOfCollectedAny[Char]

    Permalink
    Definition Classes
    Matchers
  94. def every[K, V, JMAP[k, v] <: Map[k, v]](xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]]): ResultOfCollectedAny[Entry[K, V]]

    Permalink
    Definition Classes
    Matchers
  95. def every[E, C[_]](xs: C[E])(implicit collecting: Collecting[E, C[E]]): ResultOfCollectedAny[E]

    Permalink
    Definition Classes
    Matchers
  96. def exactly(num: Int, xs: String)(implicit collecting: Collecting[Char, String]): ResultOfCollectedAny[Char]

    Permalink
    Definition Classes
    Matchers
  97. def exactly[K, V, JMAP[k, v] <: Map[k, v]](num: Int, xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]]): ResultOfCollectedAny[Entry[K, V]]

    Permalink
    Definition Classes
    Matchers
  98. def exactly[E, C[_]](num: Int, xs: C[E])(implicit collecting: Collecting[E, C[E]]): ResultOfCollectedAny[E]

    Permalink
    Definition Classes
    Matchers
  99. final def execute: Unit

    Permalink
    Definition Classes
    Suite
  100. final def execute(testName: String, configMap: ConfigMap, color: Boolean, durations: Boolean, shortstacks: Boolean, fullstacks: Boolean, stats: Boolean): Unit

    Permalink
    Definition Classes
    Suite
  101. val exist: ExistWord

    Permalink
    Definition Classes
    MatcherWords
  102. def expectedTestCount(filter: Filter): Int

    Permalink
    Definition Classes
    Suite → AbstractSuite
  103. def fail(cause: Throwable): Nothing

    Permalink
    Definition Classes
    Assertions
  104. def fail(message: String, cause: Throwable): Nothing

    Permalink
    Definition Classes
    Assertions
  105. def fail(message: String): Nothing

    Permalink
    Definition Classes
    Assertions
  106. def fail(): Nothing

    Permalink
    Definition Classes
    Assertions
  107. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  108. val fullyMatch: FullyMatchWord

    Permalink
    Definition Classes
    MatcherWords
  109. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  110. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  111. val have: HaveWord

    Permalink
    Definition Classes
    MatcherWords
  112. val ignore: IgnoreWord

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  113. def inOrder(firstEle: Any, secondEle: Any, remainingEles: Any*): ResultOfInOrderApplication

    Permalink
    Definition Classes
    Matchers
  114. def inOrderOnly[T](firstEle: Any, secondEle: Any, remainingEles: Any*): ResultOfInOrderOnlyApplication

    Permalink
    Definition Classes
    Matchers
  115. val include: IncludeWord

    Permalink
    Definition Classes
    MatcherWords
  116. def info: Informer

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike → Informing
  117. def intercept[T <: AnyRef](f: ⇒ Any)(implicit manifest: Manifest[T]): T

    Permalink
    Definition Classes
    Assertions
  118. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  119. val it: ItWord

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  120. val key: KeyWord

    Permalink
    Definition Classes
    Matchers
  121. val length: LengthWord

    Permalink
    Definition Classes
    MatcherWords
  122. def lowPriorityConversionCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], cnv: (A) ⇒ B): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  123. def lowPriorityTypeCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], ev: <:<[A, B]): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  124. def markup: Documenter

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike → Documenting
  125. val matchPattern: MatchPatternWord

    Permalink
    Definition Classes
    MatcherWords
  126. def message(expectedMessage: String): ResultOfMessageWordApplication

    Permalink
    Definition Classes
    Matchers
  127. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  128. def nestedSuites: IndexedSeq[Suite]

    Permalink
    Definition Classes
    Suite → AbstractSuite
  129. def no(xs: String)(implicit collecting: Collecting[Char, String]): ResultOfCollectedAny[Char]

    Permalink
    Definition Classes
    Matchers
  130. def no[K, V, JMAP[k, v] <: Map[k, v]](xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]]): ResultOfCollectedAny[Entry[K, V]]

    Permalink
    Definition Classes
    Matchers
  131. def no[E, C[_]](xs: C[E])(implicit collecting: Collecting[E, C[E]]): ResultOfCollectedAny[E]

    Permalink
    Definition Classes
    Matchers
  132. val noException: NoExceptionWord

    Permalink
    Definition Classes
    MatcherWords
  133. def noneOf(firstEle: Any, secondEle: Any, remainingEles: Any*): ResultOfNoneOfApplication

    Permalink
    Definition Classes
    Matchers
  134. val not: NotWord

    Permalink
    Definition Classes
    MatcherWords
  135. def note: Notifier

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike → Notifying
  136. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  137. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  138. def of[T](implicit ev: Manifest[T]): ResultOfOfTypeInvocation[T]

    Permalink
    Definition Classes
    Matchers
  139. def oneOf(firstEle: Any, secondEle: Any, remainingEles: Any*): ResultOfOneOfApplication

    Permalink
    Definition Classes
    Matchers
  140. def only(xs: Any*): ResultOfOnlyApplication

    Permalink
    Definition Classes
    Matchers
  141. def pending: PendingNothing

    Permalink
    Definition Classes
    Suite
  142. def pendingUntilFixed(f: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Suite
  143. def produce[T](implicit arg0: Manifest[T]): ResultOfProduceInvocation[T]

    Permalink
    Definition Classes
    Matchers
  144. val readable: ReadableWord

    Permalink
    Definition Classes
    MatcherWords
  145. val regex: RegexWord

    Permalink
    Definition Classes
    Matchers
  146. final def registerIgnoredTest(testText: String, testTags: Tag*)(testFun: ⇒ Unit): Unit

    Permalink
    Definition Classes
    FlatSpecLike → TestRegistration
  147. final def registerTest(testText: String, testTags: Tag*)(testFun: ⇒ Unit): Unit

    Permalink
    Definition Classes
    FlatSpecLike → TestRegistration
  148. def rerunner: Option[String]

    Permalink
    Definition Classes
    Suite → AbstractSuite
  149. def run(testName: Option[String], args: Args): Status

    Permalink
    Definition Classes
    FlatSpecLike → Suite → AbstractSuite
  150. final def run(testName: Option[String], reporter: Reporter, stopper: Stopper, filter: Filter, configMap: Map[String, Any], distributor: Option[Distributor], tracker: Tracker): Status

    Permalink
    Definition Classes
    AbstractSuite
  151. def runNestedSuites(args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    Suite → AbstractSuite
  152. def runTest(testName: String, args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike → Suite → AbstractSuite
  153. def runTests(testName: Option[String], args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike → Suite → AbstractSuite
  154. implicit val shorthandSharedTestRegistrationFunction: (String) ⇒ BehaveWord

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  155. implicit val shorthandTestRegistrationFunction: (String, String, String) ⇒ ResultOfStringPassedToVerb

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  156. val size: SizeWord

    Permalink
    Definition Classes
    MatcherWords
  157. val sorted: SortedWord

    Permalink
    Definition Classes
    MatcherWords
  158. val startWith: StartWithWord

    Permalink
    Definition Classes
    MatcherWords
  159. final val styleName: String

    Permalink
    Definition Classes
    FlatSpecLike → Suite → AbstractSuite
  160. def suiteId: String

    Permalink
    Definition Classes
    Suite
  161. def suiteName: String

    Permalink
    Definition Classes
    Suite
  162. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  163. def tags: Map[String, Set[String]]

    Permalink
    Definition Classes
    FlatSpecLike → Suite → AbstractSuite
  164. def testDataFor(testName: String, theConfigMap: ConfigMap): TestData

    Permalink
    Definition Classes
    FlatSpecLike → Suite
  165. def testNames: Set[String]

    Permalink
    Definition Classes
    FlatSpecLike → Suite → AbstractSuite
  166. def the[T](implicit arg0: Manifest[T]): ResultOfTheTypeInvocation[T]

    Permalink
    Definition Classes
    Matchers
  167. def theSameElementsAs(xs: GenTraversable[_]): ResultOfTheSameElementsAsApplication

    Permalink
    Definition Classes
    Matchers
  168. def theSameElementsInOrderAs(xs: GenTraversable[_]): ResultOfTheSameElementsInOrderAsApplication

    Permalink
    Definition Classes
    Matchers
  169. val theSameInstanceAs: TheSameInstanceAsPhrase

    Permalink
    Definition Classes
    Matchers
  170. val they: TheyWord

    Permalink
    Attributes
    protected
    Definition Classes
    FlatSpecLike
  171. def thrownBy(fun: ⇒ Any): ResultOfThrownByApplication

    Permalink
    Definition Classes
    Matchers
  172. def toString(): String

    Permalink
    Definition Classes
    FlatSpec → AnyRef → Any
  173. def trap[T](f: ⇒ T): Throwable

    Permalink
    Definition Classes
    Assertions
  174. val typeCheck: TypeCheckWord

    Permalink
    Definition Classes
    MatcherWords
  175. def typeCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], ev: <:<[B, A]): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  176. implicit def unconstrainedEquality[A, B](implicit equalityOfA: Equality[A]): Constraint[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  177. val value: ValueWord

    Permalink
    Definition Classes
    Matchers
  178. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  179. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  180. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  181. def withClue[T](clue: Any)(fun: ⇒ T): T

    Permalink
    Definition Classes
    Assertions
  182. def withFixture(test: NoArgTest): Outcome

    Permalink
    Attributes
    protected
    Definition Classes
    Suite → AbstractSuite
  183. val writable: WritableWord

    Permalink
    Definition Classes
    MatcherWords

Deprecated Value Members

  1. def assert(o: Option[String]): Unit

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This method has been deprecated in favor of macro assertion and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.

  2. def assert(o: Option[String], clue: Any): Unit

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This method has been deprecated in favor of macro assertion and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.

  3. def assume(o: Option[String]): Unit

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This method has been deprecated in favor of macro assumption and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.

  4. def assume(o: Option[String], clue: Any): Unit

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This method has been deprecated in favor of macro assumption and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.

  5. def evaluating(fun: ⇒ Any): ResultOfEvaluatingApplication

    Permalink
    Definition Classes
    Matchers
    Annotations
    @deprecated
    Deprecated

    Please use 'an [Exception] should be thrownBy { ... }' syntax instead

  6. def expect(expected: Any)(actual: Any): Unit

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of assertResult instead.

  7. def expect(expected: Any, clue: Any)(actual: Any): Unit

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of assertResult instead.

  8. def expectResult(expected: Any)(actual: Any): Unit

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This expectResult method has been deprecated. Please replace all invocations of expectResult with an identical invocation of assertResult instead.

  9. def expectResult(expected: Any, clue: Any)(actual: Any): Unit

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    This expectResult method has been deprecated. Please replace all invocations of expectResult with an identical invocation of assertResult instead.

Inherited from Section

Inherited from Matchers

Inherited from Explicitly

Inherited from MatcherWords

Inherited from Tolerance

Inherited from FlatSpec

Inherited from FlatSpecLike

Inherited from Documenting

Inherited from Alerting

Inherited from Notifying

Inherited from Informing

Inherited from CanVerb

Inherited from MustVerb

Inherited from ShouldVerb

Inherited from TestRegistration

Inherited from Suite

Inherited from Serializable

Inherited from AbstractSuite

Inherited from Assertions

Inherited from TripleEquals

Inherited from TripleEqualsSupport

Inherited from AnyRef

Inherited from Any

Ungrouped