hubverse-org / hubValidations

Testing framework for hubverse hub validations
https://hubverse-org.github.io/hubValidations/
Other
1 stars 4 forks source link

refactor custom function execution #150

Closed zkamvar closed 1 month ago

zkamvar commented 1 month ago

I've refactored the custom function execution functions. This refactor is mainly for the purposes of debugging and readability. I find this especially important when navigating a function that works with variables in other environments. Having the comments and the sentinel variables reduces the cognative load necessary to walk through the function during a debugging session.

During my refactor, I found that there was an untested error and a dangling else condition that should have resulted in an error in the case of a malformed config file. I added classes to those errors and added tests for them.

Note that this PR does not need to ship with the next version of hubValidations if we want to ship the new features immediately.

This will fix #148

github-actions[bot] commented 1 month ago

🚀 Deployed on https://6724dcd12a603e0999801e42--hubvalidations-pr-previews.netlify.app