Repository navigation
Conversation
A test mocking two headers that share a basename, each named by its directory, is the traditional-mock counterpart of the pending Partial example. It stays pending until CMock and Unity can name a mock by the folder its #include names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Folded into #1326, which carries this commit rebased onto next_version. Its example now passes there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a pending system example for a test that mocks two headers sharing a basename, each named by its directory. It is the traditional-mock counterpart of the pending Partial example in
partials_module_disambiguation_spec.rb. Both stay pending until CMock and Unity can name a mock by its folder.Changes
spec/system/same_named_modules_spec.rb: a new context mocksdrivers/uart/config.handdrivers/spi/config.hin one test and expects it to build and pass. The example is marked pending with the upstream dependency named.assets/fixtures/same_named_modules/test/test_both_configs_mocked_traditional.c: the fixture test.Against today's CMock the build fails at compile, because both mock headers share one include guard. No library code changes.