Open sumanth-lingappa opened 3 weeks ago
I need to mock GTK_IS_DIALOG macro to unit test one of my scenarios.
GTK_IS_DIALOG
sample original code
if (GTK_IS_DIALOG(gtk_window)) { ... // I need to return a specific value in this code from my mock function }
Since I am unable to mock GTK_IS_DIALOG, the control is not coming inside the if block.
if
please help
I need to mock
GTK_IS_DIALOG
macro to unit test one of my scenarios.sample original code
Since I am unable to mock
GTK_IS_DIALOG
, the control is not coming inside theif
block.please help