MCPcopy Index your code
hub / github.com/simstudioai/sim / generateEdgeId

Function generateEdgeId

packages/testing/src/factories/edge.factory.ts:21–23  ·  view source on GitHub ↗

* Generates an edge ID from source and target.

(source: string, target: string)

Source from the content-addressed store, hash-verified

19 * Generates an edge ID from source and target.
20 */
21function generateEdgeId(source: string, target: string): string {
22 return `${source}-${target}-${generateRandomString(4)}`
23}
24
25/**
26 * Creates a mock edge connecting two blocks.

Callers 1

createEdgeFunction · 0.85

Calls 1

generateRandomStringFunction · 0.90

Tested by

no test coverage detected