Commit a357765
Add parity test for filter chain optimization and fix unknown filter handling
The parity test ensures the optimized filter chain produces identical results
to the unoptimized nested method approach across many scenarios including
chained filters, named parameters, SafeString handling, and edge cases.
Fixed a behavioral difference where unknown filters would pass through the
original value in the optimized path but return empty in the unoptimized path.
Now both paths return null for unknown filters.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 5877a05 commit a357765
2 files changed
Lines changed: 532 additions & 1 deletion
File tree
- src
- main/java/com/hubspot/jinjava/el/ext
- test/java/com/hubspot/jinjava/el/ext
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
0 commit comments