View Source Fixtures.Text (Fixtures v0.0.11)

Text related generators.

Summary

Functions

Generate a random animal name.

Generate a random animal name.

Generate paragraphs of lorem ipsum.

Generate paragraphs of lorem ipsum.

Generate a random noun.

Generate a random noun.

Generate a random string.

Generate a random string.

Functions

@spec animal(Keyword.t()) :: String.t()

Generate a random animal name.

Link to this function

animal(settings, key, opts \\ [])

View Source
@spec animal(Keyword.t(), atom(), Keyword.t()) :: String.t()

Generate a random animal name.

@spec ipsum(Keyword.t()) :: String.t()

Generate paragraphs of lorem ipsum.

Set :paragraphs to set the amount of paragraphs to generate.

Link to this function

ipsum(settings, key, opts \\ [])

View Source
@spec ipsum(Keyword.t(), atom(), Keyword.t()) :: String.t()

Generate paragraphs of lorem ipsum.

Set :paragraphs to set the amount of paragraphs to generate.

@spec noun(Keyword.t()) :: String.t()

Generate a random noun.

Link to this function

noun(settings, key, opts \\ [])

View Source
@spec noun(Keyword.t(), atom(), Keyword.t()) :: String.t()

Generate a random noun.

@spec string(Keyword.t()) :: String.t()

Generate a random string.

Options

  • :length the length of the generated string. Allows range of length.
  • :charset a string with all allowed characters.
Link to this function

string(settings, key, opts \\ [])

View Source
@spec string(Keyword.t(), atom(), Keyword.t()) :: String.t()

Generate a random string.

Options

  • :length the length of the generated string. Allows range of length.
  • :charset a string with all allowed characters.