Commit 7b3b6fb
committed
test: add comprehensive test suite with edge cases and fuzzing
- Add property-based fuzz tests using fast-check for imports-parser
- Add edge case tests for nested fences, weird backticks, indented fences
- Add extended schema validation tests for frontmatter parsing
- Add integration tests for command building and template substitution
- Add extended template tests for strict vs non-strict mode
- Add extended trust/known_hosts tests for domain extraction
Tests verify:
- Parser never panics on random/unicode input
- Safe ranges never overlap and stay within bounds
- Imports only appear in safe ranges outside code blocks
- Correct handling of shebangs, symbols, globs, line ranges
- Template variable extraction and substitution edge cases
- Trust decisions and known_hosts persistence1 parent f5ad522 commit 7b3b6fb
File tree
8 files changed
+1722
-0
lines changed- src
8 files changed
+1722
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
270 | 271 | | |
271 | 272 | | |
272 | 273 | | |
| 274 | + | |
| 275 | + | |
273 | 276 | | |
274 | 277 | | |
275 | 278 | | |
| |||
556 | 559 | | |
557 | 560 | | |
558 | 561 | | |
| 562 | + | |
| 563 | + | |
559 | 564 | | |
560 | 565 | | |
561 | 566 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
0 commit comments