IntForgery - xgouchet/Elmyr GitHub Wiki
@Target([AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FIELD, AnnotationTarget.PROPERTY]) annotation class IntForgery
Mark a field, property or method parameter as a primitive integer forgery.
You can only specify the min
and max
parameters, or the mean
and standardDeviation
parameters.
Parameters
min
- the minimum value (inclusive), default = Int.MIN_VALUE
max
- the maximum value (exclusive), default = Int.MAX_VALUE
mean
- the mean value of the distribution
standardDeviation
- the standard deviation value of the distribution
Constructors
<init>
IntForgery(min:
Int
= Int.MIN_VALUE, max:
Int
= Int.MAX_VALUE, mean:
Int
= 0, standardDeviation:
Int
= -1)
Mark a field, property or method parameter as a primitive integer forgery.
You can only specify the min
and max
parameters, or the mean
and standardDeviation
parameters.
Parameters
min
- the minimum value (inclusive), default = Int.MIN_VALUE
max
- the maximum value (exclusive), default = Int.MAX_VALUE
mean
- the mean value of the distribution
standardDeviation
- the standard deviation value of the distribution
Properties
max
val max:
Int
the maximum value (exclusive), default = Int.MAX_VALUE
mean
val mean:
Int
the mean value of the distribution
min
val min:
Int
the minimum value (inclusive), default = Int.MIN_VALUE
standardDeviation
val standardDeviation:
Int
the standard deviation value of the distribution