Testing "seam" in Elixir

Yeah, I could have spent a five minutes more to add more context.

I still sense there should be a way to pull off something similar. Maybe with metaprogramming indeed.