Azure / Azure/umock-c

WTB umock_c regions

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

Description

At the moment umock_c mechanism of expected/actual call matching is enables globally.

There's a mechanism to reset all the calls (umock_c_reset_all_calls()). But that is rather brutal.

I propose to have (in addition) umock_c_disable() and umock_c_enable().

umock_c_disable() would simply not do any matching of actual calls to expected calls.

umock_c_enable() would (re-)start matching actual calls to expected call.

Best Regards,
Andrei Porumb

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating umock_c_reset_all_calls() and the code that performs expected/actual call matching. Trace how matching is currently enabled globally, then verify that the proposed umock_c_disable() pauses matching without clearing calls and umock_c_enable() resumes it.

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.