Azure / Azure/umock-c

IGNORED_ARG does not work anymore with ENUM

Open
#179 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
36
Forks
27
Avg merge
32m
Merged PRs (30d)
3

Description

(this is for C++).

![image](https://user-images.githubusercontent.com/9283365/101071531-97c7aa00-3551-11eb-93e5-fd9d32dfde6c.png)

yields

![image](https://user-images.githubusercontent.com/9283365/101071587-aada7a00-3551-11eb-8cf9-b10a7eb44c70.png)

Here's a simple repro:

```cpp
typedef enum E
{A,B,C} E;

void f(E e)
{
(void)e;
}

int main(void)
{
f(0);
f(A);
return 0;
}

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported C++ example with the enum E, functions f(0), and f(A), then trace the IGNORED_ARG handling for enum arguments. Compare the behavior of both calls and use the existing project tests, if relevant, to verify the corrected handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.