FreeYourSoul / FSeam

Cpp header only library to manage compile time mock class generated via Python script
MIT License
86 stars 8 forks source link

Const return type (ref or not) doesn't work #34

Open FreeYourSoul opened 4 years ago

FreeYourSoul commented 4 years ago

Describe the bug When having a const return value on a mocked method/function, the mock doesn't work

To Reproduce Create a header containing a function returning a const value and try to generate its FSeam mock

Expected behavior Being able to return const values

Additional context The error occurs because the constness is not removed in the FSeamMockData that contains the mocked return values (should contains a non-const value that will earn its constness only when returned by the function).

jenisys commented 3 years ago

RELATED TO: #31 (one of the items in the list)