Skip to content

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

Draft
KrishaDeshkool wants to merge 9 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 9 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 10 times, most recently from 707811c to c03c71b Compare April 27, 2026 11:05
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).
@KrishaDeshkool KrishaDeshkool force-pushed the find_and_add_missing_tests branch 3 times, most recently from 5cb53d7 to a92032d Compare April 27, 2026 11:10
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.
@KrishaDeshkool KrishaDeshkool force-pushed the find_and_add_missing_tests branch 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 3 times, most recently from ee6f66e to 4f42d9e Compare April 27, 2026 12:13
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 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 from 6fbc01f to bbab9a9 Compare April 27, 2026 13:37
@KrishaDeshkool KrishaDeshkool force-pushed the find_and_add_missing_tests branch 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
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