| 191 | }; |
| 192 | |
| 193 | struct MemoizeLruThreadUnsafeFactory { |
| 194 | template <typename Func, |
| 195 | typename RetType = decltype(MemoizeLruThreadUnsafe(std::declval<Func>(), 0))> |
| 196 | RetType operator()(Func&& func, int32_t capacity) { |
| 197 | return MemoizeLruThreadUnsafe(std::forward<Func>(func), capacity); |
| 198 | } |
| 199 | }; |
| 200 | |
| 201 | template <typename T> |
| 202 | class TestMemoizeLru : public ::testing::Test { |
nothing calls this directly
no test coverage detected