Packages
ever_faker
0.1.0
Generate fake (but realistic) data for testing and development.
Retired package: Deprecated - use fake instead
Current section
Files
Jump to
Current section
Files
lib/faker/star_wars.ex
defmodule EverFaker.StarWars do
import EverFaker, only: [localize: 1]
@moduledoc """
Functions for generating StarWars related data
"""
@doc """
Returns a Star Wars character name
## Examples
iex> EverFaker.StarWars.character()
"Greedo"
iex> EverFaker.StarWars.character()
"Jek Tono Porkins"
iex> EverFaker.StarWars.character()
"Poe Dameron"
iex> EverFaker.StarWars.character()
"R4-P17"
"""
@spec character() :: String.t()
localize(:character)
@doc """
Returns a Star Wars planet name
## Examples
iex> EverFaker.StarWars.planet()
"Mon Cala"
iex> EverFaker.StarWars.planet()
"Ryloth"
iex> EverFaker.StarWars.planet()
"Endor"
iex> EverFaker.StarWars.planet()
"Shili"
"""
@spec planet() :: String.t()
localize(:planet)
@doc """
Returns a Star Wars quote
## Examples
iex> EverFaker.StarWars.quote()
"Congratulations. You are being rescued. Please do not resist."
iex> EverFaker.StarWars.quote()
"What chance do we have? The question is 'what choice'. Run, hide, plead for mercy, scatter your forces. You give way to an enemy this evil with this much power and you condemn the galaxy to an eternity of submission. The time to fight is now!"
iex> EverFaker.StarWars.quote()
"Will someone get this big walking carpet out of my way?"
iex> EverFaker.StarWars.quote()
"To be Jedi is to face the truth, and choose. Give off light, or darkness, Padawan. Be a candle, or the night."
"""
@spec quote() :: String.t()
localize(:quote)
end