longBoundsBased

fun <T> ArbExtensionPoint.longBoundsBased(minInclusive: Long = Long.MIN_VALUE, maxInclusive: Long = Long.MAX_VALUE, minSize: Long, maxSize: Long? = null, factory: (lowerBound: Long, upperBound: Long) -> T): ArbArgsGenerator<T>(source)

Returns an ArbArgsGenerator which generates a T based on generated lower and upper bounds and the given factory where the bounds range from minInclusive to maxInclusive respecting the given minSize as well as maxSize if defined.

If minSize = 0, then it generates cases where lower > upper. Set minSize to 1 or greater if you do not want to include them.

Since

2.0.0

Parameters

minSize

must be greater than or equal to 1

maxSize

must be greater than or equal to minSize and less than the possible max size given by minInclusive, maxInclusive