MapMatchers

object MapMatchers extends MapMatchers
Companion:
class
class Object
trait Matchable
class Any

Type members

Inherited classlikes

class MapKeyResultMatcher[K](result: MatchResult[Iterable[(K, Any)]])
Inherited from:
MapBeHaveMatchers
class MapResultMatcher[K, V](result: MatchResult[Iterable[(K, V)]])
Inherited from:
MapBeHaveMatchers
class MapValueResultMatcher[V](result: MatchResult[Iterable[(Any, V)]])
Inherited from:
MapBeHaveMatchers
class PartialFunctionResultMatcher[K, V](result: MatchResult[PartialFunction[K, V]])
Inherited from:
MapBeHaveMatchers

Value members

Inherited methods

def be: NeutralMatcher[Any]
Inherited from:
BeHaveMatchers
def beDefinedAt[K](values: K*): Matcher[PartialFunction[K, Any]]

matches if the partial function is defined at those values

matches if the partial function is defined at those values

Inherited from:
MapBaseMatchers
def beDefinedBy[K, V](values: (K, V)*): Matcher[PartialFunction[K, V]]

matches if the partial function is defined at those values and return expected values

matches if the partial function is defined at those values and return expected values

Inherited from:
MapBaseMatchers
def definedAt[K](values: K*): Matcher[PartialFunction[K, Any]]
Inherited from:
MapBeHaveMatchers
def definedBy[K, V](values: (K, V)*): Matcher[PartialFunction[K, Any]]
Inherited from:
MapBeHaveMatchers
Inherited from:
BeHaveMatchers
def haveKey[K](k: K): Matcher[Iterable[(Any, Any)]]

matches if map.contains(k)

matches if map.contains(k)

Inherited from:
MapBaseMatchers
def haveKeys[K](keys: K*): Matcher[Iterable[(K, Any)]]

matches if map.contains(k) forall key k

matches if map.contains(k) forall key k

Inherited from:
MapBaseMatchers
def havePair[K, V](p: (K, V)): Matcher[Iterable[(Any, Any)]]

matches if map contains a pair (key, value) == (k, v)

matches if map contains a pair (key, value) == (k, v)

Inherited from:
MapBaseMatchers
def havePairs[K, V](pairs: (K, V)*): Matcher[Iterable[(K, V)]]

matches if map contains all the specified pairs

matches if map contains all the specified pairs

Inherited from:
MapBaseMatchers
def haveValue[V](v: V): Matcher[Iterable[(Any, Any)]]

matches if map contains a pair (key, value) with value == v

matches if map contains a pair (key, value) with value == v

Inherited from:
MapBaseMatchers
def haveValues[V](values: V*): Matcher[Iterable[(Any, V)]]

matches if map contains a pair (key, value) with value == v for all value v

matches if map contains a pair (key, value) with value == v for all value v

Inherited from:
MapBaseMatchers
def key[K](k: K): Matcher[Iterable[(Any, Any)]]
Inherited from:
MapBeHaveMatchers
def keys[K](ks: K*): Matcher[Iterable[(Any, Any)]]
Inherited from:
MapBeHaveMatchers
def not: NotMatcher[Any]
Inherited from:
BeHaveMatchers
def pair[K, V](p: (K, V)): Matcher[Iterable[(Any, Any)]]
Inherited from:
MapBeHaveMatchers
def pairs[K, V](pairs: (K, V)*): Matcher[Iterable[(Any, Any)]]
Inherited from:
MapBeHaveMatchers
def value[V](v: V): Matcher[Iterable[(Any, Any)]]
Inherited from:
MapBeHaveMatchers
def values[V](vs: V*): Matcher[Iterable[(Any, Any)]]
Inherited from:
MapBeHaveMatchers

Implicits

Inherited implicits

implicit def toMapKeyResultMatcher[K](result: MatchResult[Iterable[(K, Any)]]): MapKeyResultMatcher[K]
Inherited from:
MapBeHaveMatchers
implicit def toMapResultMatcher[K, V](result: MatchResult[Iterable[(K, V)]]): MapResultMatcher[K, V]
Inherited from:
MapBeHaveMatchers
implicit def toMapValueResultMatcher[V](result: MatchResult[Iterable[(Any, V)]]): MapValueResultMatcher[V]
Inherited from:
MapBeHaveMatchers
implicit def toPartialFunctionResultMatcher[K, V](result: MatchResult[PartialFunction[K, V]]): PartialFunctionResultMatcher[K, V]
Inherited from:
MapBeHaveMatchers