Created
July 17, 2020 15:09
-
-
Save goncalotomas/fe5218d1d78ac0451cd6e0a177aa6a80 to your computer and use it in GitHub Desktop.
Test module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Foo do | |
@options %{ | |
"1option" => :ok1, | |
"2option" => :ok2, | |
"3option" => :ok3, | |
"4option" => :ok4, | |
"5option" => :ok5, | |
"6option" => :ok6, | |
"7option" => :ok7, | |
"8option" => :ok8, | |
"9option" => :ok9, | |
"10option" => :ok0, | |
"11option" => :ok1, | |
"12option" => :ok2, | |
"13option" => :ok3, | |
"14option" => :ok4, | |
"15option" => :ok5, | |
"16option" => :ok6, | |
"17option" => :ok7, | |
"18option" => :ok8, | |
"19option" => :ok9, | |
"20option" => :ok0, | |
"21option" => :ok1, | |
"22option" => :ok2, | |
"23option" => :ok3, | |
"24option" => :ok4, | |
"25option" => :ok5, | |
"26option" => :ok6, | |
"27option" => :ok7, | |
"28option" => :ok8, | |
"29option" => :ok9, | |
"30option" => :ok0, | |
"31option" => :ok1, | |
"32option" => :ok2, | |
"33option" => :ok3, | |
"34option" => :ok4, | |
"35option" => :ok5, | |
"36option" => :ok6, | |
"37option" => :ok7, | |
"38option" => :ok8, | |
"39option" => :ok9, | |
"40option" => :ok0, | |
"41option" => :ok1, | |
"42option" => :ok2, | |
"43option" => :ok3, | |
"44option" => :ok4, | |
"45option" => :ok5, | |
"46option" => :ok6, | |
"47option" => :ok7, | |
"48option" => :ok8, | |
"49option" => :ok9, | |
"50option" => :ok0 | |
} | |
def baz(option) do | |
Map.fetch!(@options, option) | |
end | |
def bar("1option") do | |
:ok1 | |
end | |
def bar("2option") do | |
:ok2 | |
end | |
def bar("3option") do | |
:ok3 | |
end | |
def bar("4option") do | |
:ok4 | |
end | |
def bar("5option") do | |
:ok5 | |
end | |
def bar("6option") do | |
:ok6 | |
end | |
def bar("7option") do | |
:ok7 | |
end | |
def bar("8option") do | |
:ok8 | |
end | |
def bar("9option") do | |
:ok9 | |
end | |
def bar("10option") do | |
:ok0 | |
end | |
def bar("11option") do | |
:ok1 | |
end | |
def bar("12option") do | |
:ok2 | |
end | |
def bar("13option") do | |
:ok3 | |
end | |
def bar("14option") do | |
:ok4 | |
end | |
def bar("15option") do | |
:ok5 | |
end | |
def bar("16option") do | |
:ok6 | |
end | |
def bar("17option") do | |
:ok7 | |
end | |
def bar("18option") do | |
:ok8 | |
end | |
def bar("19option") do | |
:ok9 | |
end | |
def bar("20option") do | |
:ok0 | |
end | |
def bar("21option") do | |
:ok1 | |
end | |
def bar("22option") do | |
:ok2 | |
end | |
def bar("23option") do | |
:ok3 | |
end | |
def bar("24option") do | |
:ok4 | |
end | |
def bar("25option") do | |
:ok5 | |
end | |
def bar("26option") do | |
:ok6 | |
end | |
def bar("27option") do | |
:ok7 | |
end | |
def bar("28option") do | |
:ok8 | |
end | |
def bar("29option") do | |
:ok9 | |
end | |
def bar("30option") do | |
:ok0 | |
end | |
def bar("31option") do | |
:ok1 | |
end | |
def bar("32option") do | |
:ok2 | |
end | |
def bar("33option") do | |
:ok3 | |
end | |
def bar("34option") do | |
:ok4 | |
end | |
def bar("35option") do | |
:ok5 | |
end | |
def bar("36option") do | |
:ok6 | |
end | |
def bar("37option") do | |
:ok7 | |
end | |
def bar("38option") do | |
:ok8 | |
end | |
def bar("39option") do | |
:ok9 | |
end | |
def bar("40option") do | |
:ok0 | |
end | |
def bar("41option") do | |
:ok1 | |
end | |
def bar("42option") do | |
:ok2 | |
end | |
def bar("43option") do | |
:ok3 | |
end | |
def bar("44option") do | |
:ok4 | |
end | |
def bar("45option") do | |
:ok5 | |
end | |
def bar("46option") do | |
:ok6 | |
end | |
def bar("47option") do | |
:ok7 | |
end | |
def bar("48option") do | |
:ok8 | |
end | |
def bar("49option") do | |
:ok9 | |
end | |
def bar("50option") do | |
:ok0 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment