Azure / Azure/umock-c

STRICT_EXPECTED_CALL should have an optional variable number of arguments to describe the call

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

Description

Right now I have:
```c
STRICT_EXPECTED_CALL(create_something("a", 1));
```

But I want to have:
```
STRICT_EXPECTED_CALL(create_something("a", 1), "%s %d", "create_something for source", __LINE__);
```

And these printf-ish arguments would be printed in the get_expected_calls somehow as hints/pointers.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the STRICT_EXPECTED_CALL entry point and the get_expected_calls output mentioned in the issue. Review how the current call form is parsed and displayed, then define completion as accepting the optional printf-style description arguments and showing their resulting hint or pointer in get_expected_calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.