Azure / Azure/umock-c

MOCKABLE_FUNCTION_WITH_RETURNS should allow specifying only one of the returns

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

Description

It would be nice to be able to use MOCKABLE_FUNCTION_WITH_RETURNS to specify only one of the return values by leaving the other blank.

MOCKABLE_FUNCTION_WITH_RETURNS(, int, returns_something)(, 42) <- Specifies only the failed value.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the definition and existing tests or usages of MOCKABLE_FUNCTION_WITH_RETURNS, then compare how its return values are parsed and supplied. Done means the macro accepts a blank return value while preserving the specified value, as illustrated by the issue's returns_something example, with tests covering the partial-return form.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
testing
Issue type
Feature
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.