Package-level declarations
Types
Container for captured values. If dev.mokkery.matcher.ArgMatcher implements this interface, Capture.capture is called on full match (all matchers for given call match). Implementing Capture is not recommended. Use CaptureMatcher.
A capture that is able to store elements.
Capture that stores only the last value.
Properties
Returns true if SlotCapture.value is SlotCapture.Value.Absent.
Returns true if SlotCapture.value is SlotCapture.Value.Present.
Functions
Returns unwrapped SlotCapture.value if it is SlotCapture.Value.Present. Otherwise, it fails.
Returns unwrapped SlotCapture.value if it is SlotCapture.Value.Present. Otherwise, it returns null.
Just like getIfPresent, but as a getValue operator.
Short for capture with Capture.callback.
Helper function to propagate capture for dev.mokkery.matcher.ArgMatcher.Composite.