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

added roleid validation via ncname and parametrized tests #499

Merged
merged 3 commits into from
May 3, 2021

Conversation

fsuits
Copy link
Contributor

@fsuits fsuits commented Apr 21, 2021

Signed-off-by: FrankSuits frankst@au1.ibm.com

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commits are signed-off.

Added roleid validation as a general form of ncname validation.
Refactored validation tests by parametrization and boosted coverage.

Signed-off-by: FrankSuits <frankst@au1.ibm.com>
@fsuits fsuits requested a review from butler54 April 21, 2021 07:02
@codecov
Copy link

codecov bot commented Apr 22, 2021

Codecov Report

Merging #499 (098adf4) into develop (47529a7) will increase coverage by 0.07%.
The diff coverage is 98.71%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #499      +/-   ##
===========================================
+ Coverage    98.08%   98.15%   +0.07%     
===========================================
  Files           72       73       +1     
  Lines         7360     7427      +67     
===========================================
+ Hits          7219     7290      +71     
+ Misses         141      137       -4     
Impacted Files Coverage Δ
trestle/core/commands/validate.py 85.00% <0.00%> (-15.00%) ⬇️
trestle/core/const.py 100.00% <100.00%> (ø)
trestle/core/duplicates_validator.py 97.50% <100.00%> (-2.50%) ⬇️
trestle/core/object_factory.py 100.00% <100.00%> (ø)
trestle/core/roleid_validator.py 100.00% <100.00%> (ø)
trestle/core/validator_factory.py 100.00% <100.00%> (ø)
trestle/core/validator_helper.py 100.00% <100.00%> (+4.54%) ⬆️
trestle/utils/load_distributed.py 100.00% <100.00%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 47529a7...098adf4. Read the comment docs.

Copy link
Collaborator

@butler54 butler54 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we are solving a different problem here to what I expected. Happy to discuss. The code looks okay in itself, I just believe there is more work todo.

@butler54 butler54 self-requested a review May 3, 2021 04:59
Copy link
Collaborator

@butler54 butler54 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@butler54 butler54 merged commit 84dc9a2 into develop May 3, 2021
@butler54 butler54 deleted the feat/roleid_validation branch May 3, 2021 05:19
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.

2 participants