Commit Graph

22 Commits

Author SHA1 Message Date
kevin zhao
175e3530bc move validation logic to rule.rs 2025-11-13 22:07:45 -05:00
kevin zhao
c7993e0471 conslidate validate_match_examples and validate_not_match_examples 2025-11-13 22:07:45 -05:00
kevin zhao
dc76907771 refactor: rule traits 2025-11-13 22:07:45 -05:00
kevin zhao
9bf0c066d9 more cleanup 2025-11-13 22:07:44 -05:00
kevin zhao
ceea9075ea docstrings and other cleanup 2025-11-13 22:07:44 -05:00
kevin zhao
842d6adb59 refactor to test positive matches 2025-11-13 22:07:44 -05:00
kevin zhao
ad55ca629c refactor: using deep assertions instead of expect tests; removed Display impls 2025-11-13 22:07:43 -05:00
kevin zhao
8a98b7afd3 reordering so that impl comes before def 2025-11-13 22:07:43 -05:00
kevin zhao
b751be9156 cleanup and prettify 2025-11-13 22:07:43 -05:00
kevin zhao
8c909a0084 making things more functional 2025-11-13 22:07:43 -05:00
kevin zhao
66dca34c1c using camelCase 2025-11-13 22:07:42 -05:00
kevin zhao
1743981ee5 evaluation -> check 2025-11-13 22:07:41 -05:00
kevin zhao
7681b325fe basic.rs: using expect tests 2025-11-13 22:07:41 -05:00
kevin zhao
c086fe35a5 adding is_match to Evaluation 2025-11-13 22:07:41 -05:00
kevin zhao
755331425e refactor: implementing rule traits, rulematch enum 2025-11-13 22:07:41 -05:00
kevin zhao
a2890e2ca7 adding a line after early return block 2025-11-13 22:07:39 -05:00
kevin zhao
230cb2e3e2 best -> strictest 2025-11-13 22:07:39 -05:00
kevin zhao
2952c14719 implementing PartialOrd for Decision instead of defining custom is_stricter_than func 2025-11-13 22:07:38 -05:00
kevin zhao
687a8c38ff introduce variant typing to policy result 2025-11-13 22:07:38 -05:00
kevin zhao
7e79c4dc5b refactor rules so no more cartesian product 2025-11-13 22:07:37 -05:00
kevin zhao
71ea7edca4 update shape of RuleMatch and Evaluation 2025-11-13 22:07:37 -05:00
kevin zhao
773177ec8b first pass at prefix rules 2025-11-13 22:07:37 -05:00