-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
468 additions
and
353 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
defmodule ExFactor.Support.ExampleFive do | ||
@moduledoc """ | ||
Support module for `ExFactor` testing. | ||
""" | ||
|
||
alias ExFactor.Parser | ||
alias ExFactor.Callers | ||
import Parser | ||
|
||
def callers(mod), do: Callers.callers(mod) | ||
def all_funcs(input), do: all_functions(input) | ||
end |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
defmodule ExFactor.Support.ExampleThree do | ||
@moduledoc """ | ||
Support module for `ExFactor` testing. | ||
""" | ||
|
||
# use alias as: to verify the caller is found. | ||
alias ExFactor.{Callers, Parser} | ||
# alias ExFactor.Callers | ||
|
||
def callers(mod), do: Callers.callers(mod) | ||
def all_functions(input), do: Parser.all_functions(input) | ||
end | ||
|
||
|
||
defmodule ExFactor.Support.ExampleFour do | ||
defmodule SubModuleTwoA do | ||
@moduledoc false | ||
|
||
def example_func(arg_two) do | ||
IO.puts(inspect(arg_two, label: "arg_two")) | ||
end | ||
end | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
defmodule ExFactor.Support.ExampleTwo do | ||
@moduledoc """ | ||
Support module for `ExFactor` testing. | ||
""" | ||
|
||
# use alias as: to verify the caller is found. | ||
alias ExFactor.Parser, as: P | ||
|
||
def callers(mod), do: ExFactor.Callers.callers(mod) | ||
def all_functions(input), do: P.all_functions(input) | ||
|
||
defmodule SubModuleTwoA do | ||
@moduledoc false | ||
|
||
def example_func(arg_two) do | ||
IO.puts(inspect(arg_two, label: "arg_two")) | ||
end | ||
end | ||
end |
Oops, something went wrong.