WTB global REGISTER_UMOCK_ALIAS_TYPE
- Dominant language
- C
- Stars
- 36
- Forks
- 27
- Avg merge
- 32m
- Merged PRs (30d)
- 3
Description
For every used header, for every used type in unittests, the following needs to be done:
```c
REGISTER_UMOCK_ALIAS_TYPE(some_type, some_defined_type).
```
In most cases the some_defined_type can only be 1. For example:
```c
REGISTER_UMOCK_ALIAS_TYPE(BSDL_FILE_LL_HANDLE, void*);
```
(in this case, the type is `void*` because nobody should care what's behind it).
The proposal is to have in the header that initially defines `some_type` some method that is equivalent to REGISTER_UMOCK_ALIAS_TYPE(BSDL_FILE_LL_HANDLE, void*);
Best Regards,
Andrei Porumb
Contributor guide
No contributing guide indexed for this repository
Research direction
Review the headers that define types used by the unit tests and the current per-type REGISTER_UMOCK_ALIAS_TYPE declarations. Determine how a defining header could provide an equivalent global registration mechanism without relying on repeated test setup. Done means the used unit-test types are available through that mechanism consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- testing, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100