meekrosoft / fff

A testing micro framework for creating function test doubles
Other
749 stars 163 forks source link

[QUESTION] How to mock GTK library's GTK_IS_DIALOG macro? #134

Open sumanth-lingappa opened 3 weeks ago

sumanth-lingappa commented 3 weeks ago

I need to mock GTK_IS_DIALOG macro to unit test one of my scenarios.

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.

please help