object Inspectors extends Inspectors
Companion object that facilitates the importing of Inspectors members as
an alternative to mixing it in. One use case is to import Inspectors's members so you can use
them in the Scala interpreter.
- Source
- Inspectors.scala
- Alphabetic
- By Inheritance
- Inspectors
- Inspectors
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
forAll[ASSERTION](xs: String)(fun: (Char) ⇒ ASSERTION)(implicit collecting: Collecting[Char, String], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Unit
Ensure that all characters in a given
Stringpass the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).Ensure that all characters in a given
Stringpass the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).The difference between
forAllandforEveryis thatforAllwill stop on the first failure, whileforEverywill continue to inspect all characters in theStringafter the first failure (and report all failures).- xs
the
String- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forAll[K, V, JMAP[k, v] <: Map[k, v], ASSERTION](xs: JMAP[K, V])(fun: (Entry[K, V]) ⇒ ASSERTION)(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure that all elements in a given
java.util.Mappass the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).Ensure that all elements in a given
java.util.Mappass the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).The difference between
forAllandforEveryis thatforAllwill stop on the first failure, whileforEverywill continue to inspect alljava.util.Mapelements after the first failure (and report all failures).- K
the type of key in the Java Map
- V
the type of value in the Java Map
- JMAP
subtype of
java.util.Map- xs
the
java.util.Map- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forAll[E, C[_], ASSERTION](xs: C[E])(fun: (E) ⇒ ASSERTION)(implicit collecting: Collecting[E, C[E]], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure that all elements in a given collection pass the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).
Ensure that all elements in a given collection pass the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).
The difference between
forAllandforEveryis thatforAllwill stop on the first failure, whileforEverywill continue to inspect all elements after the first failure (and report all failures).- E
the type of element in the collection
- C
the type of collection
- xs
the collection of elements
- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forAtLeast[ASSERTION](min: Int, xs: String)(fun: (Char) ⇒ ASSERTION)(implicit collecting: Collecting[Char, String], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure that at least
minnumber of characters in a givenStringpass the given inspection function.Ensure that at least
minnumber of characters in a givenStringpass the given inspection function.- min
the minimum number of characters in
Stringthat must pass the inspection function- xs
the
String- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forAtLeast[K, V, JMAP[k, v] <: Map[k, v], ASSERTION](min: Int, xs: JMAP[K, V])(fun: (Entry[K, V]) ⇒ ASSERTION)(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure that at least
minnumber of elements in a givenjava.util.Mappass the given inspection function.Ensure that at least
minnumber of elements in a givenjava.util.Mappass the given inspection function.- K
the type of key in the
java.util.Map- V
the type of value in the
java.util.Map- JMAP
subtype of
java.util.Map- min
the minimum number of elements that must pass the inspection function
- xs
the
java.util.Map- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forAtLeast[E, C[_], ASSERTION](min: Int, xs: C[E])(fun: (E) ⇒ ASSERTION)(implicit collecting: Collecting[E, C[E]], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure that at least
minnumber of elements of a given collection pass the given inspection function.Ensure that at least
minnumber of elements of a given collection pass the given inspection function.- E
the type of element in the collection
- C
the type of collection
- min
the minimum number of elements that must pass the inspection function
- xs
the collection of elements
- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forAtMost[ASSERTION](max: Int, xs: String)(fun: (Char) ⇒ ASSERTION)(implicit collecting: Collecting[Char, String], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure that at most
maxnumber of characters in a givenStringpass the given inspection function.Ensure that at most
maxnumber of characters in a givenStringpass the given inspection function.- max
the maximum number of characters in
Stringthat must pass the inspection function- xs
the
String- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forAtMost[K, V, JMAP[k, v] <: Map[k, v], ASSERTION](max: Int, xs: JMAP[K, V])(fun: (Entry[K, V]) ⇒ ASSERTION)(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure that at most
maxnumber of elements in a givenjava.util.Mappass the given inspection function.Ensure that at most
maxnumber of elements in a givenjava.util.Mappass the given inspection function.- K
the type of key in the
java.util.Map- V
the type of value in the
java.util.Map- JMAP
subtype of
java.util.Map- max
the maximum number of elements in the
java.util.Mapthat must pass the inspection function- xs
the
java.util.Map- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forAtMost[E, C[_], ASSERTION](max: Int, xs: C[E])(fun: (E) ⇒ ASSERTION)(implicit collecting: Collecting[E, C[E]], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure that at most
maxnumber of elements of a given collection pass the given inspection function.Ensure that at most
maxnumber of elements of a given collection pass the given inspection function.- E
the type of element in the collection
- C
the type of collection
- max
the maximum number of elements that must pass the inspection function
- xs
the collection of elements
- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forBetween[ASSERTION](from: Int, upTo: Int, xs: String)(fun: (Char) ⇒ ASSERTION)(implicit collecting: Collecting[Char, String], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure the number of characters of a given
Stringthat pass the given inspection function is betweenfromandupTo.Ensure the number of characters of a given
Stringthat pass the given inspection function is betweenfromandupTo.- from
the minimum number of characters in the
Stringthat must pass the inspection number- upTo
the maximum number of characters in the
Stringthat must pass the inspection number- xs
the
String- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forBetween[K, V, JMAP[k, v] <: Map[k, v], ASSERTION](from: Int, upTo: Int, xs: JMAP[K, V])(fun: (Entry[K, V]) ⇒ ASSERTION)(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure the number of elements in a given
java.util.Mapthat pass the given inspection function is betweenfromandupTo.Ensure the number of elements in a given
java.util.Mapthat pass the given inspection function is betweenfromandupTo.- K
the type of key in the
java.util.Map- V
the type of value in the
java.util.Map- JMAP
subtype of
java.util.Map- from
the minimum number of elements in the
java.util.Mapthat must pass the inspection number- upTo
the maximum number of elements in the
java.util.Mapthat must pass the inspection number- xs
the
java.util.Map- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forBetween[E, C[_], ASSERTION](from: Int, upTo: Int, xs: C[E])(fun: (E) ⇒ ASSERTION)(implicit collecting: Collecting[E, C[E]], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure the number of elements of a given collection that pass the given inspection function is between
fromandupTo.Ensure the number of elements of a given collection that pass the given inspection function is between
fromandupTo.- E
the type of element in the collection
- C
the type of collection
- from
the minimum number of elements that must pass the inspection number
- upTo
the maximum number of elements that must pass the inspection number
- xs
the collection of elements
- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forEvery[ASSERTION](xs: String)(fun: (Char) ⇒ ASSERTION)(implicit collecting: Collecting[Char, String], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure that every character in a given
Stringpasses the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).Ensure that every character in a given
Stringpasses the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).The difference between
forEveryandforAllis thatforEverywill continue to inspect all characters in theStringafter first failure, and report all failures, whereasforAllwill stop on (and only report) the first failure.- xs
the
String- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forEvery[K, V, JMAP[k, v] <: Map[k, v], ASSERTION](xs: JMAP[K, V])(fun: (Entry[K, V]) ⇒ ASSERTION)(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure that every element in a given
java.util.Mappasses the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).Ensure that every element in a given
java.util.Mappasses the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).The difference between
forEveryandforAllis thatforEverywill continue to inspect all elements in thejava.util.Mapafter first failure, and report all failures, whereasforAllwill stop on (and only report) the first failure.- K
the type of key in the
java.util.Map- V
the type of value in the
java.util.Map- JMAP
subtype of
java.util.Map- xs
the
java.util.Map- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forEvery[E, C[_], ASSERTION](xs: C[E])(fun: (E) ⇒ ASSERTION)(implicit collecting: Collecting[E, C[E]], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure that every element in a given collection passes the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).
Ensure that every element in a given collection passes the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).
The difference between
forEveryandforAllis thatforEverywill continue to inspect all elements after first failure, and report all failures, whereasforAllwill stop on (and only report) the first failure.- E
the type of element in the collection
- C
the type of collection
- xs
the collection of elements
- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forExactly[ASSERTION](succeededCount: Int, xs: String)(fun: (Char) ⇒ ASSERTION)(implicit collecting: Collecting[Char, String], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure that exactly
succeededCountnumber of characters in a givenStringpass the given inspection function.Ensure that exactly
succeededCountnumber of characters in a givenStringpass the given inspection function.- succeededCount
the number of characters in the
Stringthat must pass the inspection function- xs
the
String- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forExactly[K, V, JMAP[k, v] <: Map[k, v], ASSERTION](succeededCount: Int, xs: JMAP[K, V])(fun: (Entry[K, V]) ⇒ ASSERTION)(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure that exactly
succeededCountnumber of elements in a givenjava.util.Mappass the given inspection function.Ensure that exactly
succeededCountnumber of elements in a givenjava.util.Mappass the given inspection function.- K
the type of key in the
java.util.Map- V
the type of value in the
java.util.Map- JMAP
subtype of
java.util.Map- succeededCount
the number of elements in the
java.util.Mapthat must pass the inspection function- xs
the
java.util.Map- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
def
forExactly[E, C[_], ASSERTION](succeededCount: Int, xs: C[E])(fun: (E) ⇒ ASSERTION)(implicit collecting: Collecting[E, C[E]], asserting: InspectorAsserting[ASSERTION], prettifier: Prettifier, pos: Position): Result
Ensure that exactly
succeededCountnumber of elements of a given collection pass the given inspection function.Ensure that exactly
succeededCountnumber of elements of a given collection pass the given inspection function.- E
the type of element in the collection
- C
the type of collection
- succeededCount
the number of elements that must pass the inspection function
- xs
the collection of elements
- fun
the inspection function
- collecting
the implicit
Collectingthat can transformxsinto ascala.collection.GenTraversable
- Definition Classes
- Inspectors
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )