Supertrait for typeclasses that enable contain key matcher syntax.
A KeyMapping[M] provides access to the "key mapping nature" of type M in such
a way that contain key matcher syntax can be used with type M. A M
can be any type for which contain key syntax makes sense. ScalaTest provides implicit implementations
for scala.collection.GenMap and java.util.Map. You can enable the contain key
matcher syntax on your own type U by defining a KeyMapping[U] for the type and making it
available implicitly.
ScalaTest provides implicit KeyMapping instances for scala.collection.GenMap,
and java.util.Map in the KeyMapping companion object.
Linear Supertypes
AnyRef, Any
Ordering
Alphabetic
By inheritance
Inherited
KeyMapping
AnyRef
Any
Hide All
Show all
Visibility
Public
All
Abstract Value Members
abstract defcontainsKey(map: M, key: Any): Boolean
Check if the passed map contains the passed key.
Check if the passed map contains the passed key.
map
a map about which an assertion is being made
key
key of which should be contained in the passed map
Supertrait for typeclasses that enable
contain keymatcher syntax.A
KeyMapping[M]provides access to the "key mapping nature" of typeMin such a way thatcontain keymatcher syntax can be used with typeM. AMcan be any type for whichcontain keysyntax makes sense. ScalaTest provides implicit implementations forscala.collection.GenMapandjava.util.Map. You can enable thecontain keymatcher syntax on your own typeUby defining aKeyMapping[U]for the type and making it available implicitly.ScalaTest provides implicit
KeyMappinginstances forscala.collection.GenMap, andjava.util.Mapin theKeyMappingcompanion object.