(name: string, kind: string, inclusive: string)
| 113 | describe('proposeParameterizedHelper (v2 — parameterize the near-dupes)', () => { |
| 114 | // The real zod shape: same body, differing only in kind ("min"/"max") and inclusive (false/true). |
| 115 | const check = (name: string, kind: string, inclusive: string) => ({ |
| 116 | name, file: 'types.ts', startLine: 1, endLine: 8, |
| 117 | body: `${name}(message) {\n return this._addCheck({\n kind: ${kind},\n value: 0,\n inclusive: ${inclusive},\n message: toString(message),\n });\n}`, |
| 118 | }); |
| 119 | const members = [check('positive', '"min"', 'false'), check('negative', '"max"', 'false'), check('nonnegative', '"min"', 'true')]; |
| 120 | |
| 121 | it('turns each varying token position into a parameter, named from its context', () => { |
no outgoing calls
no test coverage detected