This is no different than logging. Write your ETS access functions in such a way that for testing they compile to send a digest message to a named process for testing. When compiling for production that code can then be safely omitted.
elixir/lib/logger/lib/logger.ex at v1.5.3 · elixir-lang/elixir · GitHub






















