lundi 7 mars 2022

How to mock template function using gmock?

test.h
template <typename T>
        T* test(int a)
        {
            //do something...
        }
test.cpp
---------------------------------------------
temp.h
namespace Ext{
  struct EXTERNAL Dev : public abc::xyz{
   ---
   ----
}
--------
pointer->test<Ext::Dev>(4);

how to mock test function & how to call EXPECT_CALL(obj, test)..?

Aucun commentaire:

Enregistrer un commentaire