Elixir Blog Post: Doctest functions with side effects

Hi there! :wave: It’s me again!

Lately I’ve been working on documentation for the project, including adding some context function usage examples, and wanted to “doctest” them for the sake of correctness. However, I noticed that most of the high level public functions have side effects.

In the following blog post I share how we could “doctest” those impure functions on the example from Mox’s documentation.

1 Like