matchesComposite

Matches an argument that satisfies a matcher composed of matchers with builder.

Matchers used to create a composite must be passed via the matchers vararg. The builder receives a list of actual matcher objects, in the same order as provided in the vararg, which can then be composed. Any other arguments must be passed directly to the matcher constructor inside the builder.

It is allowed to use literal values as matchers; they are automatically wrapped with dev.mokkery.matcher.ArgMatcher.Equals.

Samples: