View Source Bonfire.Common.Simulation (bonfire v0.3.5-classic-beta.6)

Link to this section 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 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

Link to this section 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

Link to this function

some(count_or_range \\ 1, fun)

View Source

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 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