OfType

class OfType<T>(val type: KClass<*>) : ArgMatcher<T>

Matches an argument that is instance of type.

Constructors

Link copied to clipboard
constructor(type: KClass<*>)

Properties

Link copied to clipboard
val type: KClass<*>

Functions

Link copied to clipboard
open override fun matches(arg: T): Boolean
Link copied to clipboard

Helper function to propagate capture for dev.mokkery.matcher.ArgMatcher.Composite.

Link copied to clipboard
open override fun toString(): String