-
Notifications
You must be signed in to change notification settings - Fork 24
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
test: improve coverage of curie validation #284
Conversation
Issue linkml/linkml#1701 has discovered an erroneous validation of CURIE prefixes, since apparently it doesn't accept characters '_' and '.'. This patch extends the tests to provide test coverage for the expected values to work, avoiding future regressions. Signed-off-by: Silvano Cirujano Cuesta <[email protected]>
Signed-off-by: Silvano Cirujano Cuesta <[email protected]>
For whatever strange reasons, the regular expressions being used for CURIE validation were using UTF-8 non-breaking spaces (hex C2A0) instead of normal whitespaces. This patch fixes it. Signed-off-by: Silvano Cirujano Cuesta <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #284 +/- ##
=======================================
Coverage 62.09% 62.09%
=======================================
Files 63 63
Lines 8461 8461
Branches 2170 2170
=======================================
Hits 5254 5254
Misses 2599 2599
Partials 608 608
☔ View full report in Codecov by Sentry. |
Signed-off-by: Silvano Cirujano Cuesta <[email protected]>
Commit 38c4be2 explains the issue. The regular expressions were right! Only some strange UTF-8 non-breaking spaces instead of whitespaces had appeared in the code and were breaking the regexs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Silvanoc !
According issue linkml/linkml#1701 apparently legal CURIEs like
WIKIDATA_PROPERTY:P854
andWIKIDATA.PROPERTY:P854
are being rejected by the validation module.This PR provides:
Closes linkml/linkml#1701.