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.
Supertrait for typeclasses that enable
contain key
matcher syntax.A
KeyMapping[M]
provides access to the "key mapping nature" of typeM
in such a way thatcontain key
matcher syntax can be used with typeM
. AM
can be any type for whichcontain key
syntax makes sense. ScalaTest provides implicit implementations forscala.collection.GenMap
andjava.util.Map
. You can enable thecontain key
matcher syntax on your own typeU
by defining aKeyMapping[U]
for the type and making it available implicitly.ScalaTest provides implicit
KeyMapping
instances forscala.collection.GenMap
, andjava.util.Map
in theKeyMapping
companion object.