View Source Bonfire.Common.Simulation (Bonfire v0.9.10-classic-beta.169)
Fake data generators
Summary
Functions
Picks a unique random url for an ap endpoint
Generates random base64 text
Generates a random boolean
Picks a random canonical url and makes it unique
Generate a random content type
Picks a remote url from a set of available ones.
Generates a random date of birth based on an age range of 18-99
Generates a random domain name
Generates a random unique email
Generates the first half of an email address
Returns false
Generate a random floating point number
Picks a date up to 300 days in the future, not including today
Picks a datetime up to 300 days in the future, not including today
Same as future_datetime, but as an ISO8601 formatted string.
Picks an icon url
Picks an image url
Generate a random signed integer
A random license for content
Returns a city and country
Generate a random boolean that can also be nil
Picks a name
Generate a random negative integer
Generates a random paragraph
Generates a random password string
Picks a date up to 300 days in the past, not including today
Picks a datetime up to 300 days in the past, not including today
Same as past_datetime, but as an ISO8601 formatted string.
Picks a path from a set of available files.
Generate a random positive integer
Picks a unique preferred_username
Picks a fake signing key
Repeats a function count times if count_or_range is a positive integer.
Picks a summary text paragraph
Returns true
Generates a random unique ID, optionally for a specific schema
Generates a random unique ULID
Generates a random url
Generates a random username
Generates a random unique UUID
A verb to be used for an activity.
A website address
Functions
Picks a unique random url for an ap endpoint
Generates random base64 text
Generates a random boolean
Picks a random canonical url and makes it unique
Generate a random content type
Picks a remote url from a set of available ones.
Generates a random date of birth based on an age range of 18-99
Generates a random domain name
Generates a random unique email
Generates the first half of an email address
Returns false
Generate a random floating point number
Picks a date up to 300 days in the future, not including today
Picks a datetime up to 300 days in the future, not including today
Same as future_datetime, but as an ISO8601 formatted string.
Picks an icon url
Picks an image url
Generate a random signed integer
A random license for content
Returns a city and country
Generate a random boolean that can also be nil
Picks a name
Generate a random negative integer
Generates a random paragraph
Generates a random password string
Picks a date up to 300 days in the past, not including today
Picks a datetime up to 300 days in the past, not including today
Same as past_datetime, but as an ISO8601 formatted string.
Picks a path from a set of available files.
Generate a random positive integer
Picks a unique preferred_username
Picks a fake signing key
Repeats a function count times if count_or_range is a positive integer.
If count_or_range is a positive range, a random number from this range is selected and that value used as a count
Picks a summary text paragraph
Returns true
Generates a random unique ID, optionally for a specific schema
Generates a random unique ULID
Generates a random url
Generates a random username
Generates a random unique UUID
A verb to be used for an activity.
A website address