MCPcopy Create free account
hub / github.com/effect-app/libs / arb

Function arb

packages/effect-app/src/Schema/moreStrings.ts:229–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

227 type FullPrefix = `${Prefix}${Separator}`
228 const pref = `${prefix}${separator ?? "-"}` as FullPrefix
229 const arb = (): S.Arbitrary<Type> => (fc) =>
230 StringIdArb()(fc).map(
231 (x) => (pref + x.substring(0, 50 - pref.length)) as Type
232 )
233 // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
234 const s = StringIdSchemaBase
235 .pipe(

Callers 2

generateFromArbitraryFunction · 0.85
prefixedStringIdFunction · 0.85

Calls 2

StringIdArbFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected