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.
Attributes
- Companion
- trait
- Graph
-
- Supertypes
- Self type
-
Inspectors.type
Members list
Value members
Concrete methods
Inherited methods
Ensure that all characters in a given String pass 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 String pass the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).
The difference between forAll and forEvery is that forAll will stop on the first failure, while forEvery will continue to inspect all characters in the String after the first failure (and report all failures).
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- xs
-
the
String
Attributes
- Inherited from:
- Inspectors
Ensure that all elements in a given java.util.Map 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 java.util.Map pass the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).
The difference between forAll and forEvery is that forAll will stop on the first failure, while forEvery will continue to inspect all java.util.Map elements after the first failure (and report all failures).
Type parameters
- JMAP
-
subtype of
java.util.Map - K
-
the type of key in the Java Map
- V
-
the type of value in the Java Map
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- xs
-
the
java.util.Map
Attributes
- Inherited from:
- Inspectors
Ensure that all elements in a given scala.collection.GenMap 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 scala.collection.GenMap pass the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).
The difference between forAll and forEvery is that forAll will stop on the first failure, while forEvery will continue to inspect all scala.collection.GenMap entries after the first failure (and report all failures).
Type parameters
- K
-
the type of key in the Map
- MAP
-
subtype of
java.util.Map - V
-
the type of value in the Map
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- xs
-
the
java.util.Map
Attributes
- Inherited from:
- Inspectors
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 forAll and forEvery is that forAll will stop on the first failure, while forEvery will continue to inspect all elements after the first failure (and report all failures).
Type parameters
- C
-
the type of collection
- E
-
the type of element in the collection
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- xs
-
the collection of elements
Attributes
- Inherited from:
- Inspectors
Ensure that at least min number of characters in a given String pass the given inspection function.
Ensure that at least min number of characters in a given String pass the given inspection function.
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- min
-
the minimum number of characters in
Stringthat must pass the inspection function - xs
-
the
String
Attributes
- Inherited from:
- Inspectors
Ensure that at least min number of elements in a given java.util.Map pass the given inspection function.
Ensure that at least min number of elements in a given java.util.Map pass the given inspection function.
Type parameters
- JMAP
-
subtype of
java.util.Map - K
-
the type of key in the
java.util.Map - V
-
the type of value in the
java.util.Map
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- min
-
the minimum number of elements that must pass the inspection function
- xs
-
the
java.util.Map
Attributes
- Inherited from:
- Inspectors
Ensure that at least min number of elements in a given scala.collection.GenMap pass the given inspection function.
Ensure that at least min number of elements in a given scala.collection.GenMap pass the given inspection function.
Type parameters
- K
-
the type of key in the
scala.collection.GenMap - MAP
-
subtype of
scala.collection.GenMap - V
-
the type of value in the
scala.collection.GenMap
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- min
-
the minimum number of elements that must pass the inspection function
- xs
-
the
scala.collection.GenMap
Attributes
- Inherited from:
- Inspectors
Ensure that at least min number of elements of a given collection pass the given inspection function.
Ensure that at least min number of elements of a given collection pass the given inspection function.
Type parameters
- C
-
the type of collection
- E
-
the type of element in the collection
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- min
-
the minimum number of elements that must pass the inspection function
- xs
-
the collection of elements
Attributes
- Inherited from:
- Inspectors
Ensure that at most max number of characters in a given String pass the given inspection function.
Ensure that at most max number of characters in a given String pass the given inspection function.
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- max
-
the maximum number of characters in
Stringthat must pass the inspection function - xs
-
the
String
Attributes
- Inherited from:
- Inspectors
Ensure that at most max number of elements in a given java.util.Map pass the given inspection function.
Ensure that at most max number of elements in a given java.util.Map pass the given inspection function.
Type parameters
- JMAP
-
subtype of
java.util.Map - K
-
the type of key in the
java.util.Map - V
-
the type of value in the
java.util.Map
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- max
-
the maximum number of elements in the
java.util.Mapthat must pass the inspection function - xs
-
the
java.util.Map
Attributes
- Inherited from:
- Inspectors
Ensure that at most max number of elements in a given scala.collection.GenMap pass the given inspection function.
Ensure that at most max number of elements in a given scala.collection.GenMap pass the given inspection function.
Type parameters
- K
-
the type of key in the
scala.collection.GenMap - MAP
-
subtype of
scala.collection.GenMap - V
-
the type of value in the
scala.collection.GenMap
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- max
-
the maximum number of elements in the
scala.collection.GenMapthat must pass the inspection function - xs
-
the
scala.collection.GenMap
Attributes
- Inherited from:
- Inspectors
Ensure that at most max number of elements of a given collection pass the given inspection function.
Ensure that at most max number of elements of a given collection pass the given inspection function.
Type parameters
- C
-
the type of collection
- E
-
the type of element in the collection
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- max
-
the maximum number of elements that must pass the inspection function
- xs
-
the collection of elements
Attributes
- Inherited from:
- Inspectors
Ensure the number of characters of a given String that pass the given inspection function is between from and upTo.
Ensure the number of characters of a given String that pass the given inspection function is between from and upTo.
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - from
-
the minimum number of characters in the
Stringthat must pass the inspection number - fun
-
the inspection function
- upTo
-
the maximum number of characters in the
Stringthat must pass the inspection number - xs
-
the
String
Attributes
- Inherited from:
- Inspectors
Ensure the number of elements in a given java.util.Map that pass the given inspection function is between from and upTo.
Ensure the number of elements in a given java.util.Map that pass the given inspection function is between from and upTo.
Type parameters
- JMAP
-
subtype of
java.util.Map - K
-
the type of key in the
java.util.Map - V
-
the type of value in the
java.util.Map
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - from
-
the minimum number of elements in the
java.util.Mapthat must pass the inspection number - fun
-
the inspection function
- upTo
-
the maximum number of elements in the
java.util.Mapthat must pass the inspection number - xs
-
the
java.util.Map
Attributes
- Inherited from:
- Inspectors
Ensure the number of elements in a given scala.collection.GenMap that pass the given inspection function is between from and upTo.
Ensure the number of elements in a given scala.collection.GenMap that pass the given inspection function is between from and upTo.
Type parameters
- K
-
the type of key in the
scala.collection.GenMap - MAP
-
subtype of
scala.collection.GenMap - V
-
the type of value in the
scala.collection.GenMap
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - from
-
the minimum number of elements in the
scala.collection.GenMapthat must pass the inspection number - fun
-
the inspection function
- upTo
-
the maximum number of elements in the
scala.collection.GenMapthat must pass the inspection number - xs
-
the
scala.collection.GenMap
Attributes
- Inherited from:
- Inspectors
Ensure the number of elements of a given collection that pass the given inspection function is between from and upTo.
Ensure the number of elements of a given collection that pass the given inspection function is between from and upTo.
Type parameters
- C
-
the type of collection
- E
-
the type of element in the collection
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - from
-
the minimum number of elements that must pass the inspection number
- fun
-
the inspection function
- upTo
-
the maximum number of elements that must pass the inspection number
- xs
-
the collection of elements
Attributes
- Inherited from:
- Inspectors
Ensure that every character in a given String passes 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 String passes the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).
The difference between forEvery and forAll is that forEvery will continue to inspect all characters in the String after first failure, and report all failures, whereas forAll will stop on (and only report) the first failure.
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- xs
-
the
String
Attributes
- Inherited from:
- Inspectors
Ensure that every element in a given java.util.Map 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 java.util.Map passes the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).
The difference between forEvery and forAll is that forEvery will continue to inspect all elements in the java.util.Map after first failure, and report all failures, whereas forAll will stop on (and only report) the first failure.
Type parameters
- JMAP
-
subtype of
java.util.Map - K
-
the type of key in the
java.util.Map - V
-
the type of value in the
java.util.Map
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- xs
-
the
java.util.Map
Attributes
- Inherited from:
- Inspectors
Ensure that every element in a given scala.collection.GenMap 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 scala.collection.GenMap passes the given inspection function, where "pass" means returning normally from the function (i.e., without throwing an exception).
The difference between forEvery and forAll is that forEvery will continue to inspect all entries in the scala.collection.GenMap after first failure, and report all failures, whereas forAll will stop on (and only report) the first failure.
Type parameters
- K
-
the type of key in the
scala.collection.GenMap - MAP
-
subtype of
scala.collection.GenMap - V
-
the type of value in the
scala.collection.GenMap
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- xs
-
the
scala.collection.GenMap
Attributes
- Inherited from:
- Inspectors
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 forEvery and forAll is that forEvery will continue to inspect all elements after first failure, and report all failures, whereas forAll will stop on (and only report) the first failure.
Type parameters
- C
-
the type of collection
- E
-
the type of element in the collection
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- xs
-
the collection of elements
Attributes
- Inherited from:
- Inspectors
Ensure that exactly succeededCount number of characters in a given String pass the given inspection function.
Ensure that exactly succeededCount number of characters in a given String pass the given inspection function.
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- succeededCount
-
the number of characters in the
Stringthat must pass the inspection function - xs
-
the
String
Attributes
- Inherited from:
- Inspectors
Ensure that exactly succeededCount number of elements in a given java.util.Map pass the given inspection function.
Ensure that exactly succeededCount number of elements in a given java.util.Map pass the given inspection function.
Type parameters
- JMAP
-
subtype of
java.util.Map - K
-
the type of key in the
java.util.Map - V
-
the type of value in the
java.util.Map
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- succeededCount
-
the number of elements in the
java.util.Mapthat must pass the inspection function - xs
-
the
java.util.Map
Attributes
- Inherited from:
- Inspectors
Ensure that exactly succeededCount number of elements in a given scala.collection.GenMap pass the given inspection function.
Ensure that exactly succeededCount number of elements in a given scala.collection.GenMap pass the given inspection function.
Type parameters
- K
-
the type of key in the
scala.collection.GenMap - MAP
-
subtype of
scala.collection.GenMap - V
-
the type of value in the
scala.collection.GenMap
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- succeededCount
-
the number of entries in the
scala.collection.GenMapthat must pass the inspection function - xs
-
the
scala.collection.GenMap
Attributes
- Inherited from:
- Inspectors
Ensure that exactly succeededCount number of elements of a given collection pass the given inspection function.
Ensure that exactly succeededCount number of elements of a given collection pass the given inspection function.
Type parameters
- C
-
the type of collection
- E
-
the type of element in the collection
Value parameters
- collecting
-
the implicit
Collectingthat can transformxsinto aorg.scalactic.ColCompatHelper.Iterable - fun
-
the inspection function
- succeededCount
-
the number of elements that must pass the inspection function
- xs
-
the collection of elements
Attributes
- Inherited from:
- Inspectors