Include unit test for classes with dynamic properties #12
Labels
No labels
bug
duplicate
enhancement/documentation
enhancement/feature
enhancement/organization
question
rejected
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
UserCurt/mpath#12
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The large majority of unit tests are done with structures, with some unit tests working with tables and classes. Classes with dynamic properties in particular has not been tested at all. This issue is to add extensive testing with classes implementing dynamic properties to the suite of existing unit tests.
This issue is labeled as "bug" not because it is strictly a bug but implementation could bring bugs to light.
This has been partially addressed in commits:
cf2cf42,1334641. A fixture was added that usesdynamicprops, and some non-extensive coverage was set up for creating a dynamic property withset, removing a dynamic property withremove, and discovering dynamic properties with dot operations.There still needs to be tests for:
get, nested dynamic properties, arrays ofdynamicpropsobjects, wildcard traversal through dynamic properties, missing-policy combinations specific todynamicprops.Added unit test suite for dynamic properties in
33011ac. Nonscalar instance dynamic-property access remains intentionally excluded because MATLAB does not support array-wide access.The issue remains open for branch arrays, policy combinations, heterogeneous wildcard holes, and hidden or deleted properties.
Continued to add unit tests in
fb33148, this time for hidden public dynamic properties and deleted properties.The remaining work is branch-local dynamic properties: homogeneous and heterogeneous child sets, wildcard coordinate holes, and
MissingPolicyandNonmissingRequirementcombinations.Finished in
3f55368, which covers dynamic properties across object-array branches.Direct array-wide access to instance dynamic properties remains intentionally unsupported because MATLAB does not support it.