Skip to content

Feature: Partials#1131

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

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

Conversation

@mkarlesky
Copy link
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.

This was a configuration feature that ultimately could not be a part of the configuration. It is handled as an environment variable.
- A single utility method for logging lists
- Cleaned up intentional whitespace / blank line logging with new handling for newlines at the end of a logging message
- Mock extraction was no longer mock extraction. A refactoring or merge caused extraction of mocks from discovered includes lists to include duplicates and to include the build path.
- Fixed ordering and parameter lists in calls to `ToolExecutor` `build_command_line()`.
- Added / cleaned up progress and debug logging.
- Interface → partials mocking
- Implementation → partials unit testing
1. Source extras should not be encapulated in Include objects
1. When using TestContextExractor on a preprpocessed test file, we must still associate the resutls with the original test filepath and not the preprocessed filepath

Added well-managed list of contexts for extraction
- Reference test filepath instead of preprocessed filepath
- Also rely on new well-managed list of test contexts
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