Faux: a traitless mocking library - how it works

how it works blog post

Hi all,

I announced faux to you all a few weeks ago, and per request here is a blog post on the internals of faux! I hope you all enjoy the long read. If anything does not make sense I will do my best to answer it here or in an issue in Github.

P.S. A new version of faux just came out yesterday with a lot of new features such as:

  • Mocking trait implementations
  • Mocking methods with arbitrary self receivers (i.e., self: Rc<Self>)
  • Mocking methods that will be called multiple times
  • Better error messages!

As per usual, I am open to feedback on faux or the blog post! If there are any features missing on faux that are stopping you from trying it out let me know so it can guide my prioritization. Thanks for reading!

6 Likes

I'm definitely going to give this a whirl.