Default

eu.monniot.scala3mock.Default
See theDefault companion object
trait Default[A]

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 Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract fields

val default: A