# `Attesto.Test.LogMessages`
[🔗](https://github.com/XukuLLC/attesto/blob/v2.28.0/lib/attesto/test/log_messages.ex#L1)

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.

# `errors`

```elixir
@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.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
