Annotation Interface FloatInRange
@Target(TYPE_USE)
@Retention(RUNTIME)
@AppliesTo({float.class,java.lang.Float.class})
public @interface FloatInRange
Generates a
float in the specified range.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether NaN is allowed to be generated.Defines the scope of the annotation.floatThe maximum value of the range, inclusive.floatThe minimum value of the range, inclusive.
-
Element Details
-
min
float minThe minimum value of the range, inclusive.- Default:
-1.0f/0.0f
-
max
float maxThe maximum value of the range, inclusive.- Default:
1.0f/0.0f
-
allowNaN
boolean allowNaNWhether NaN is allowed to be generated.- Default:
true
-
constraint
String constraintDefines the scope of the annotation. Possible values are defined inPropertyConstraint.- Default:
"JAZZER_PROPERTY_CONSTRAINT_DECLARATION"
-