Create gmock tests for template specialization methods
问题 I want to add GMOCK tests to verify if the container accesses the correct method. For vector it should access the second method, and for set it should access the first method (because set has set.find ). This is my template specialization: namespace tools{ struct low_priority {}; struct high_priority : low_priority {}; template<class TSource, class Ty> auto exists_in(high_priority, const TSource &source, const Ty &item) -> decltype(source->find(item) != source.end()) { return source.find(item