spy_fn< MockT > Class Template Reference

Functor that counts the number of times it was called. More...

#include <atria/testing/spies.hpp>

Public Member Functions

template<typename MockT2 >
 spy_fn (MockT2 mock)
 
template<typename MockT2 >
 spy_fn (MockT2 mock, const spy_base &spy)
 
template<typename... Args>
auto operator() (Args &&...args) -> decltype((called(), this->mock_(std::forward< Args >(args)...)))
 

Detailed Description

template<typename MockT = mocks::defaulting<void>>
class atria::testing::spy_fn< MockT >

Functor that counts the number of times it was called.

Todo:
Support comparing the actual arguments. Keep generic interface using boost::any

Definition at line 142 of file spies.hpp.


The documentation for this class was generated from the following file:
Fork me on GitHub