ArbExtensionPoint

Extension point for factories which generate ArbArgsGenerator.

Since

2.0.0

Inheritors

Properties

Link copied to clipboard
abstract val arb: ArbExtensionPoint
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns an ArbArgsGenerator which generates BigInts ranging from (inclusive) to toInclusive.

Link copied to clipboard

Returns an ArbArgsGenerator which generates BigInts ranging from (inclusive) until toExclusive.

Link copied to clipboard
Link copied to clipboard

Returns an ArbArgsGenerator which generates Chars ranging from Char.MIN_VALUE (inclusive) to Char.MAX_VALUE (inclusive).

Link copied to clipboard
fun ArbExtensionPoint.charBounds(minInclusive: Char = Char.MIN_VALUE, maxInclusive: Char = Char.MAX_VALUE, minSize: Int = 1, maxSize: Int? = null): ArbArgsGenerator<Tuple2<Char, Char>>

Returns an ArbArgsGenerator which generates Tuple2 representing a lower and upper bound where the bounds range from minInclusive to maxInclusive respecting the given minSize as well as maxSize if defined.

Link copied to clipboard
fun <T> ArbExtensionPoint.charBoundsBased(minInclusive: Char = Char.MIN_VALUE, maxInclusive: Char = Char.MAX_VALUE, minSize: Int, maxSize: Int? = null, factory: (lowerBound: Char, upperBound: Char) -> T): ArbArgsGenerator<T>

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.

Link copied to clipboard

Returns an ArbArgsGenerator which generates Chars ranging from (inclusive) to toInclusive.

Link copied to clipboard
fun ArbExtensionPoint.charRange(minInclusive: Char = Char.MIN_VALUE, maxInclusive: Char = Char.MAX_VALUE, minSize: Int = 0, maxSize: Int? = null): ArbArgsGenerator<CharRange>

Returns an ArbArgsGenerator which generates IntRanges ranging from a lower bound minInclusive to an upper bound maxInclusive respecting the given minSize as well as maxSize if defined.

!! No backward compatibility guarantees !! Reuse at your own risk

Link copied to clipboard
fun <T> ArbExtensionPoint.createBoundsArbGenerator(minInclusive: Long, maxInclusive: Long, minSize: Long, maxSize: Long?, factory: (lowerBound: Long, upperBound: Long) -> T): ArbArgsGenerator<T>

!! No backward compatibility guarantees !! Reuse at your own risk

Link copied to clipboard
fun <T> ArbExtensionPoint.createIntDomainBasedBoundsArbGenerator(minInclusive: Int, maxInclusive: Int, minSize: Int, maxSize: Int?, factory: (lowerBound: Int, upperBound: Int) -> T): ArbArgsGenerator<T>

!! No backward compatibility guarantees !! Reuse at your own risk

Link copied to clipboard

Returns an ArbArgsGenerator which generates Ints ranging from Double.MIN_VALUE (inclusive) to Double.MAX_VALUE (inclusive).

Link copied to clipboard

Returns an ArbArgsGenerator which generates Doubles ranging from (inclusive) until toExclusive.

Link copied to clipboard

Returns an OrderedArgsGenerator for the given Enum of type E.

Link copied to clipboard
@JvmName(name = "fromValueList")
fun <T> ArbExtensionPoint.fromList(args: List<T>): ArbArgsGenerator<T>

Returns an ArbArgsGenerator based on the given args.

Link copied to clipboard

Returns an ArbArgsGenerator generating Chars based on the given progression.

Returns an ArbArgsGenerator generating Ints based on the given progression.

Returns an ArbArgsGenerator generating Longs based on the given progression.

Link copied to clipboard

Returns an ArbArgsGenerator which generates Ints ranging from Int.MIN_VALUE (inclusive) to Int.MAX_VALUE (inclusive).

Link copied to clipboard
fun ArbExtensionPoint.intBounds(minInclusive: Int = Int.MIN_VALUE, maxInclusive: Int = Int.MAX_VALUE, minSize: Int = 1, maxSize: Int? = null): ArbArgsGenerator<Tuple2<Int, Int>>

Returns an ArbArgsGenerator which generates Tuple2 representing a lower and upper bound where the bounds range from minInclusive to maxInclusive respecting the given minSize as well as maxSize if defined.

Link copied to clipboard
fun <T> ArbExtensionPoint.intBoundsBased(minInclusive: Int = Int.MIN_VALUE, maxInclusive: Int = Int.MAX_VALUE, minSize: Int, maxSize: Int? = null, factory: (lowerBound: Int, upperBound: Int) -> T): ArbArgsGenerator<T>

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.

Link copied to clipboard

Returns an ArbArgsGenerator which generates Ints ranging from (inclusive) to toInclusive.

Link copied to clipboard

Returns an ArbArgsGenerator which generates Ints ranging from (inclusive) until toExclusive.

Link copied to clipboard

Returns an ArbArgsGenerator which generates Ints ranging from Int.MIN_VALUE (inclusive) to 0 (exclusive).

Link copied to clipboard

Returns an ArbArgsGenerator which generates Ints ranging from Int.MIN_VALUE (inclusive) to 0 (inclusive).

Link copied to clipboard

Returns an ArbArgsGenerator which generates Ints ranging from 1 (inclusive) to Int.MAX_VALUE (inclusive).

Link copied to clipboard

Returns an ArbArgsGenerator which generates Ints ranging from 0 (inclusive) to Int.MAX_VALUE (inclusive) -- i.e. positive numbers and 0.

Link copied to clipboard
fun ArbExtensionPoint.intRange(minInclusive: Int = Int.MIN_VALUE, maxInclusive: Int = Int.MAX_VALUE, minSize: Int = 0, maxSize: Int? = null): ArbArgsGenerator<IntRange>

Returns an ArbArgsGenerator which generates IntRanges ranging from a lower bound minInclusive to an upper bound maxInclusive respecting the given minSize as well as maxSize if defined.

Link copied to clipboard
fun ArbExtensionPoint.localDateFromTo(from: LocalDate, toInclusive: LocalDate, temporalUnit: TemporalUnit = ChronoUnit.DAYS): ArbArgsGenerator<LocalDate>

Returns an ArbArgsGenerator which generates LocalDates ranging from (inclusive) to toInclusive where temporalUnit defines the steps.

Link copied to clipboard
fun ArbExtensionPoint.localDateFromUntil(from: LocalDate, toExclusive: LocalDate, temporalUnit: TemporalUnit = ChronoUnit.DAYS): ArbArgsGenerator<LocalDate>

Returns an ArbArgsGenerator which generates LocalDates ranging from (inclusive) to toExclusive where temporalUnit defines the steps.

Link copied to clipboard

Returns an ArbArgsGenerator which generates LocalDateTimes ranging from (inclusive) to toInclusive where temporalUnit defines the steps.

Link copied to clipboard

Returns an ArbArgsGenerator which generates LocalDateTimes ranging from (inclusive) to toExclusive where temporalUnit defines the steps.

Link copied to clipboard

Returns an ArbArgsGenerator which generates Ints ranging from Long.MIN_VALUE (inclusive) to Long.MAX_VALUE (inclusive).

Link copied to clipboard
fun ArbExtensionPoint.longBounds(minInclusive: Long = Long.MIN_VALUE, maxInclusive: Long = Long.MAX_VALUE, minSize: Long = 1, maxSize: Long? = null): ArbArgsGenerator<Tuple2<Long, Long>>

Returns an ArbArgsGenerator which generates Tuple2 representing a lower and upper bound where the bounds range from minInclusive to maxInclusive respecting the given minSize as well as maxSize if defined.

Link copied to clipboard
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>

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.

Link copied to clipboard

Returns an ArbArgsGenerator which generates Longs ranging from (inclusive) to toInclusive.

Link copied to clipboard

Returns an ArbArgsGenerator which generates Longs ranging from (inclusive) until toExclusive.

Link copied to clipboard

Returns an ArbArgsGenerator which generates Ints ranging from Long.MIN_VALUE (inclusive) to 0 (exclusive).

Link copied to clipboard

Returns an ArbArgsGenerator which generates Longs ranging from Long.MIN_VALUE (inclusive) to 0 (inclusive) -- i.e. negative numbers and 0.

Link copied to clipboard

Returns an ArbArgsGenerator which generates Longs ranging from 1 (inclusive) to Long.MAX_VALUE (inclusive).

Link copied to clipboard

Returns an ArbArgsGenerator which generates Longs ranging from 0 (inclusive) to Long.MAX_VALUE (inclusive) -- i.e. positive numbers and 0.

Link copied to clipboard
fun ArbExtensionPoint.longRange(minInclusive: Long = Long.MIN_VALUE, maxInclusive: Long = Long.MAX_VALUE, minSize: Long = 0, maxSize: Long? = null): ArbArgsGenerator<LongRange>

Returns an ArbArgsGenerator which generates LongRanges ranging from a lower bound minInclusive to an upper bound maxInclusive respecting the given minSize as well as maxSize if defined.

Link copied to clipboard

Merges first with the given second and optionally others resulting in a ArbArgsGenerator which picks the next generator to contribute a value according to the defined weights.

Link copied to clipboard
fun <T> ArbExtensionPoint.of(vararg args: T): ArbArgsGenerator<T>

Returns an ArbArgsGenerator based on the given args.

Link copied to clipboard

Returns an ArbArgsGenerator which generates OffsetDateTimes ranging from (inclusive) to toInclusive where temporalUnit defines the steps.

Link copied to clipboard

Returns an ArbArgsGenerator which generates OffsetDateTimes ranging from (inclusive) to toExclusive where temporalUnit defines the steps.

Link copied to clipboard
fun ArbExtensionPoint.string(maxLength: Int, minLength: Int = 0, allowedRanges: Array<out UnicodeRange> = UnicodeRanges.UTF_8_PRINTABLE.ranges): ArbArgsGenerator<String>

Returns an ArbArgsGenerator which generates Strings with minLength and maxLength (inclusive) using the given allowed UnicodeRanges.

Link copied to clipboard

Returns an ArbArgsGenerator which generates ZonedDateTimes ranging from (inclusive) to toInclusive where temporalUnit defines the steps.

Link copied to clipboard

Returns an ArbArgsGenerator which generates ZonedDateTimes ranging from (inclusive) to toExclusive where temporalUnit defines the steps.