WorkExpectation

class WorkExpectation(exact: Map<String, Long> = emptyMap(), maximum: Map<String, Long> = emptyMap(), minimum: Map<String, Long> = emptyMap())(source)

Deterministic work and retention assertions, independent of elapsed time.

Parameters

exact

counters that must equal the declared value.

maximum

counters that must stay within the declared bound.

minimum

counters that must establish required actual work.

Constructors

Link copied to clipboard
constructor(exact: Map<String, Long> = emptyMap(), maximum: Map<String, Long> = emptyMap(), minimum: Map<String, Long> = emptyMap())

Functions

Link copied to clipboard
fun verify(actual: Map<String, Long?>, overflowed: Boolean = false)

Missing metrics and overflow cannot satisfy an expectation.