Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: make tierNameList dependent on the state of tierDict #43

Merged

Conversation

timmahrt
Copy link
Owner

@timmahrt timmahrt commented Jan 7, 2023

This PR addresses concerns raised in: #39

Before this PR, tierNameList and tierDict were independent. An unwary user could create a Tier with an inconsistent tierNameList and tierDict.

After this PR, tierNameList is derived from tierDict. Furthermore, tierNameList has been made read only and tierDict was made protected (_tierDict). _tierDict should be accessed and modified via the provided helper methods tg.addTier, tg.getTier, tg.removeTier, and tg.renameTier.

@coveralls
Copy link

Coverage Status

Coverage: 75.575% (-0.03%) from 75.605% when pulling 23aeda5 on 39_prevent_inconsistent_state_with_tier_name_list into b1330dd on praatio_v6.

@coveralls
Copy link

coveralls commented Jan 7, 2023

Coverage Status

Coverage: 75.585% (-0.02%) from 75.605% when pulling 9ed8fda on 39_prevent_inconsistent_state_with_tier_name_list into b1330dd on praatio_v6.

@timmahrt timmahrt mentioned this pull request Jan 8, 2023
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (praatio_v6@b1330dd). Click here to learn what that means.
Patch has no changes to coverable lines.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@              Coverage Diff              @@
##             praatio_v6      #43   +/-   ##
=============================================
  Coverage              ?   75.71%           
=============================================
  Files                 ?       21           
  Lines                 ?     2623           
  Branches              ?        0           
=============================================
  Hits                  ?     1986           
  Misses                ?      637           
  Partials              ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@timmahrt timmahrt merged commit f57cba3 into praatio_v6 Feb 4, 2023
@timmahrt timmahrt deleted the 39_prevent_inconsistent_state_with_tier_name_list branch February 4, 2023 15:17
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.

None yet

3 participants