Skip to content

mw:com: add missing coverage to get set feature#350

Draft
KrishaDeshkool wants to merge 17 commits intoeclipse-score:mainfrom
KrishaDeshkool:find_and_add_missing_tests
Draft

mw:com: add missing coverage to get set feature#350
KrishaDeshkool wants to merge 17 commits intoeclipse-score:mainfrom
KrishaDeshkool:find_and_add_missing_tests

Conversation

@KrishaDeshkool
Copy link
Copy Markdown
Contributor

@KrishaDeshkool KrishaDeshkool commented Apr 23, 2026

This has the changes from the add_field_tags PR
the rest are the tests for already merged code.

@KrishaDeshkool KrishaDeshkool force-pushed the find_and_add_missing_tests branch 14 times, most recently from a92032d to 5356435 Compare April 27, 2026 11:29
Comment thread score/mw/com/impl/plumbing/lola_proxy_element_building_blocks_test.cpp Outdated
Comment thread score/mw/com/impl/plumbing/lola_proxy_element_building_blocks_test.cpp Outdated
@KrishaDeshkool KrishaDeshkool force-pushed the find_and_add_missing_tests branch 4 times, most recently from 4f42d9e to 6fbc01f Compare April 27, 2026 12:29
@KrishaDeshkool KrishaDeshkool marked this pull request as ready for review April 27, 2026 12:38
@KrishaDeshkool KrishaDeshkool force-pushed the find_and_add_missing_tests branch 2 times, most recently from bbab9a9 to 1c0cf03 Compare April 27, 2026 13:39
@KrishaDeshkool
Copy link
Copy Markdown
Contributor Author

putting it back to review since this needs to be updated after notifier tag discussion with Manuel and Brendan

@KrishaDeshkool KrishaDeshkool marked this pull request as draft April 28, 2026 08:03
@KrishaDeshkool KrishaDeshkool force-pushed the find_and_add_missing_tests branch from 1c0cf03 to 11afeed Compare May 6, 2026 10:58
KrishaDeshkool and others added 17 commits May 6, 2026 16:11
The new order allows us to set the bindings to nullptrs by default for
test only constructors. This will be useful for fields which will
require optionally inserting get / set bindings. We change all
constructors so that they're all consistent.
- Use a single test constructor which creates the get / set methods
  according to the provided bindings. This allows us to remove the
  test-only constructor overloads for each template arg combination.
- Always store the get / set method dispatches as unique_ptrs even if
  they're not enabled (when disabled, they'll simply be nullptrs). This
  allows us to have a single private constructor which always accepts
  unique_ptrs (which may be valid or nullptrs).
Replaces the EnableGet/EnableSet/EnableNotifier bool template parameters
on ProxyField and SkeletonField with a variadic pack of tags (WithGetter,
WithSetter) declared in field_tags.h. Presence of a tag enables the
matching API. The notifier surface stays unconditional on both sides,
since a field without a notifier cannot propagate value changes.

Also updates friend/forward declarations in ProxyEvent, ProxyMethod,
SkeletonEvent and SkeletonMethod, the Trait::Field aliases plus the
traits example doc, and the skeleton_field_test.cpp call sites.
* Introducing a WithNotifier field tag
* When both getter and notification mechanism is turned off there is no way for the consumer to observe the field values.
 making this configuration a compile time failure.
The instance_id field was redundant with element_fq_id.instance_id_,
both were always set to the same value.

Remove the field, the construction argument, and two now unused includes.
@KrishaDeshkool KrishaDeshkool force-pushed the find_and_add_missing_tests branch from 11afeed to 67789ce Compare May 6, 2026 14:12
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