Credo.Test.Case.to_source_file

You're seeing just the function to_source_file, go back to Credo.Test.Case module for more information.

Converts the given source string to a %SourceFile{}.

"x = 5"
|> to_source_file()
Link to this function

to_source_file(source, filename)

View Source

Converts the given source string to a %SourceFile{} with the given filename.

"x = 5"
|> to_source_file("simple.ex")