MCPcopy Create free account
hub / github.com/hashintel/hash / randomStringSuffix

Function randomStringSuffix

tests/hash-backend-integration/src/tests/util.ts:18–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16export const textDataTypeId =
17 "https://blockprotocol.org/@blockprotocol/types/data-type/text/v/1" as VersionedUrl;
18const randomStringSuffix = () => {
19 const alphabet = "abcdefghijklmnopqrstuvwxyz";
20 return new Array(6)
21 .fill(undefined)
22 .map(() => alphabet[Math.floor(Math.random() * alphabet.length)])
23 .join("");
24};
25
26export const createTestImpureGraphContext = (): ImpureGraphContext<
27 true,

Callers 1

generateRandomShortnameFunction · 0.85

Calls 3

fillMethod · 0.80
joinMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected