CallCounter

A class to count calls

Since

0.1.0

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var calls: Int

The amount of calls already done

Functions

Link copied to clipboard
fun call(): Int

Tell the counter that a call was done

Link copied to clipboard
operator fun invoke(): Int

Invoke the call function

Link copied to clipboard
fun reset()

Reset the counter

Link copied to clipboard
infix fun shouldBeCalled(times: Int)

Check if the counter was called times times