Programming
Mocking Actix Actor without getting a gray hair
At the time of writing this, I couldn’t find any useful examples for mocking an actix actor. Google and Github code search were useless. Turns out I had to study the code on how to do it: https://github.com/actix/actix/blob/6c5c25da7a77cc9b372c28352a69a64f7f05231e/src/actors/mocker.rs This part: //! Mocking is intended to be achieved by using a Read more…