|
10 | 10 | import fc from 'fast-check'; |
11 | 11 | import { replayScriptArb } from '../../src/__tests__/test-utils/property-arbitraries.ts'; |
12 | 12 | import type { FuzzTarget, FuzzTargetName } from './target-types.ts'; |
13 | | -import { cliValidationArb, maestroValidationArb } from './validation-arbitraries.ts'; |
14 | 13 |
|
15 | 14 | const SELECTOR_VALUE_HAZARDS = [ |
16 | 15 | '', |
@@ -183,20 +182,8 @@ const STRUCTURED_BASES: Partial<Record<FuzzTargetName, fc.Arbitrary<string>>> = |
183 | 182 | 'batch-steps': fc.json({ maxDepth: 3 }), |
184 | 183 | }; |
185 | 184 |
|
186 | | -/** |
187 | | - * Validation targets generate their own expectation-carrying envelopes (#1781 B2); splicing |
188 | | - * hazards into the envelope JSON would corrupt the envelope, not the payload, so they are |
189 | | - * exempt from the corruption/noise mix. Payload-level hostility lives inside their generators. |
190 | | - */ |
191 | | -const VALIDATION_ARBITRARIES: Partial<Record<FuzzTargetName, fc.Arbitrary<string>>> = { |
192 | | - 'cli-validation': cliValidationArb, |
193 | | - 'maestro-validation': maestroValidationArb, |
194 | | -}; |
195 | | - |
196 | 185 | /** The case distribution for one target: mostly near-miss, some valid, some pure noise. */ |
197 | 186 | export function arbitraryForTarget(target: FuzzTarget): fc.Arbitrary<string> { |
198 | | - const validation = VALIDATION_ARBITRARIES[target.name]; |
199 | | - if (validation !== undefined) return validation; |
200 | 187 | const seeded = fc.constantFrom(...target.seeds); |
201 | 188 | const structured = STRUCTURED_BASES[target.name]; |
202 | 189 | const base = structured === undefined ? seeded : fc.oneof(seeded, structured); |
|
0 commit comments