| 1 | --- |
| 2 | # Advanced edge cases test |
| 3 | # Tests boundary conditions and unusual configurations |
| 4 | |
| 5 | pattern: "(?P<key>\\w+)=(?P<value>.*)" |
| 6 | |
| 7 | # No prefix specified (should work like no prefix) |
| 8 | |
| 9 | inject: |
| 10 | - key: EMPTY_VALUE |
| 11 | value: "" |
| 12 | - key: WHITESPACE_VALUE |
| 13 | value: " " |
| 14 | - key: SPECIAL_CHARS |
| 15 | value: "!@#$%^&*(){}[]|\\:;\"'<>?/~`" |
| 16 | |
| 17 | rewrite: |
| 18 | # Test with empty match pattern |
| 19 | - key: ALWAYS_APPLIES |
| 20 | value: "always set" |
| 21 | inject: yes |
| 22 | |
| 23 | # Test variable substitution with non-existent variables |
| 24 | - key: MISSING_VAR_TEST |
| 25 | value: "${NONEXISTENT_VAR}_suffix" |
| 26 | inject: yes |
| 27 | |
| 28 | # Test recursive variable references |
| 29 | - key: SELF_REF |
| 30 | value: "${SELF_REF}_loop" |
| 31 | inject: yes |
| 32 | |
| 33 | # Test empty filter patterns |
| 34 | filter: |
| 35 | include: ".*" |
| 36 | exclude: "" |
| 37 | |
| 38 | filename: |
| 39 | key: FILENAME |