describeMismatch

open override fun describeMismatch(item: Any, description: Description)

Generate a description of why the matcher has not accepted the item. The description will be part of a larger description of why a matching failed, so it should be concise. This method assumes that matches(item) is false, but will not check this.

Parameters

actual

The item that the Matcher has rejected.

mismatchDescription

The description to be built or appended to.