[][src]Crate funnybot

Poor Mans Mock Helper

When the existing mock crates do not work, Funnybot could help out.

It helps with manual mocking (of traits). Mocks can call into Funnybot and thus both return pre-programmed values and record arguments.

Since pointing to the current value to return, and recording arguments requires mutability, Funnybot encapsulates the mutability into RwLock.