DateValueProvider

class DateValueProvider(val startDateString: String = DEFAULT_START_DATE_STRING) : SchemaValueProvider

Provides date values for string schemas with format "date".

Generates varied dates based on variationIndex, incrementing days from start date.

Constructors

Link copied to clipboard
constructor(startDateString: String = DEFAULT_START_DATE_STRING)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun provide(schema: Schema<*>, variationIndex: Int): Any?

Attempts to provide an example value for the given schema.