/** * Malformed Script Generator * * Generates intentionally broken bash scripts to stress-test * parser error recovery and interpreter robustness. * * 7 categories of broken scripts: * 1. Truncated - valid scripts cut at random point * 2. Unclosed quotes - unterminated string literals * 3. Unclosed parens - unterminated grouping constructs * 4. Missing keywords - incomplete compound commands * 5. Invalid operators - nonsensical operator sequences * 6. Byte-injected - random bytes inserted into valid scripts * 7. Degenerate - empty, whitespace-only, bare operators */ import fc from "fast-check"; /** Valid script cut at a random point */ declare const truncatedScript: fc.Arbitrary; declare const unclosedQuote: fc.Arbitrary; declare const unclosedParen: fc.Arbitrary; declare const missingKeyword: fc.Arbitrary; declare const invalidOperator: fc.Arbitrary; /** Random bytes inserted into valid scripts */ declare const byteInjectedScript: fc.Arbitrary; declare const degenerateScript: fc.Arbitrary; declare const mutatedCompound: fc.Arbitrary; /** Combined malformed script generator with weighted categories */ export declare const malformedScript: fc.Arbitrary; /** Export individual generators for targeted testing */ export { byteInjectedScript, degenerateScript, invalidOperator, missingKeyword, mutatedCompound, truncatedScript, unclosedParen, unclosedQuote, };