#include #include struct SomeInterface { int field; }; struct SomeStruct { int field; }; TEST(GoInterface, Basic) { utempl::GoInterface obj(SomeStruct{1}); EXPECT_EQ(obj.field, 1); }; TEST(GoInterface, Equal) { utempl::GoInterface obj(SomeStruct{1}); EXPECT_EQ(obj, utempl::GoInterface{SomeInterface{1}}); EXPECT_EQ(obj, SomeInterface{1}); EXPECT_EQ(obj, SomeStruct{1}); };