ArrayArgMatcher

Base class for creating matchers for arrays. It allows creating single implementation for all array types using matchesElements.

Subclass should not be used directly and wrapped in a type-safe manner. Check existing subclasses and their usage for guidance e.g. CollectionArgMatchers.ContainsAllArray and it's usage in containsAllElements, containsAllInts etc.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
override fun matches(arg: Any?): Boolean
Link copied to clipboard
abstract fun matchesElements(elements: List<T>): Boolean
Link copied to clipboard

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