eu.monniot.scala3mock.main.Default
See theDefault companion object
Provides a default value for some type. This is used for mocked functions to return something if no specific value have beeen provided.
Note that Any
doesn't have any default at the moment. If you decide to
implement Default
for your own type, do note that the library's mock macro
currently doesn't support higher-kinded types and default to null
for
those. If this is necessary for you, we welcome Pull Requests!
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- object given_Default_Boolean.typeobject given_Default_Byte.typeobject given_Default_Char.typeobject given_Default_Double.typeobject given_Default_Float.typeobject given_Default_Int.typeobject given_Default_Long.typeobject given_Default_OutputStream.typeobject given_Default_Short.typeobject given_Default_Unit.type