MCPcopy Create free account
hub / github.com/firebase/firebase-tools / getRandomString

Function getRandomString

scripts/dataconnect-test/tests.ts:86–93  ·  view source on GitHub ↗
(length: number)

Source from the content-addressed store, hash-verified

84}
85
86function getRandomString(length: number): string {
87 const SUFFIX_CHAR_SET = "abcdefghijklmnopqrstuvwxyz0123456789";
88 let result = "";
89 for (let i = 0; i < length; i++) {
90 result += SUFFIX_CHAR_SET.charAt(Math.floor(Math.random() * SUFFIX_CHAR_SET.length));
91 }
92 return result;
93}
94const fdcTest = toPath("fdc-test");
95
96// Each test run should use a random serviceId and databaseId.

Callers 1

newTestRunFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…