Skip to content

Feature: Partials#1131

Open
mkarlesky wants to merge 540 commits intomasterfrom
feature/partials
Open

Feature: Partials#1131
mkarlesky wants to merge 540 commits intomasterfrom
feature/partials

Conversation

@mkarlesky
Copy link
Copy Markdown
Member

Partials slice and dice source files and header files to allow testing and mocking of "private" functions (static, inline, etc.). Among other things, this allows mocking of functions inside the same source file under test.

Look up partials to `#include` instead of the original directives
(No unnecessary extra newlines)
Stricter permissions handling is apparently breaking bundler gem handling as it is defaulting to using problematic system directories
Provide user some help on simple oversights instead of confusing shenanigans
- Removed overly restrictive validation preventing mocks and tests both using PRIVATE or PUBLIC lists (these can be altered with CONFIG nacros to avoid overlap).
- Fixed validation to check the final list of functions for implementation and interface Partials for overlap.
- Added automagical accounting to remove a function from tests or mocks when the it’s added to the other list.
Expanded on C lexing to extract all preprocessor directives and collect macro definitions
This will enable preserving C language statements in generated Partials
typedefs, macros, structs, unions & enums extracted from CModule added in original order to Partials header files
Two new Partials directive macros with associated validation and function configuration subtraction handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant