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

Add runtime type checking of XPath evaluation routines #181

Merged
merged 1 commit into from Jul 20, 2022

Conversation

janssenhenning
Copy link
Contributor

Added

  • eval_xpath_all returns all results
  • eval_xpath_one returns one result and makes sure there is only one
  • eval_xpath_first returns the first result

All three accept the argument expected_type, which is used to check the results of the XPath evaluation

@codecov
Copy link

codecov bot commented Jul 20, 2022

Codecov Report

Merging #181 (ba7ceb3) into develop (487cf41) will increase coverage by 0.02%.
The diff coverage is 92.72%.

❗ Current head ba7ceb3 differs from pull request most recent head d2e7aaf. Consider uploading reports for the commit d2e7aaf to get more accurate results

@@             Coverage Diff             @@
##           develop     #181      +/-   ##
===========================================
+ Coverage    86.56%   86.58%   +0.02%     
===========================================
  Files          135      135              
  Lines        24287    24368      +81     
===========================================
+ Hits         21025    21100      +75     
- Misses        3262     3268       +6     

@janssenhenning janssenhenning merged commit e82ad70 into develop Jul 20, 2022
@janssenhenning janssenhenning deleted the feature/eval_xpath_typing branch July 20, 2022 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request xml-functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant