MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / check

Function check

test/helper-extract.test.ts:115–118  ·  view source on GitHub ↗
(name: string, kind: string, inclusive: string)

Source from the content-addressed store, hash-verified

113describe('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', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected