Attesto.Test.LogMessages (Attesto v2.28.0)

Copy Markdown View Source

Source inspection for fixed Logger.error messages in library tests.

Inspect a package's lib/ directory with errors/1. Each entry contains the source file, line, and literal message (or nil for a nonliteral call). This helper is shipped with Attesto so dependent packages need no test-source directory from a checkout.

Summary

Functions

Return every Logger.error call in Elixir source below a directory.

Functions

errors(directory)

@spec errors(Path.t()) :: [
  %{file: Path.t(), line: pos_integer(), message: String.t() | nil}
]

Return every Logger.error call in Elixir source below a directory.