MCPcopy Create free account
hub / github.com/Noumena-Network/code / sliceStringFromIndex

Function sliceStringFromIndex

src/testing/replContractHarness.ts:159–167  ·  view source on GitHub ↗
(
  text: string,
  startIndex: number,
)

Source from the content-addressed store, hash-verified

157}
158
159export function sliceStringFromIndex(
160 text: string,
161 startIndex: number,
162): StringSliceResult {
163 return {
164 value: text.slice(startIndex),
165 nextIndex: text.length,
166 }
167}
168
169export async function waitForFile(path: string, timeoutMs = 4000): Promise<void> {
170 const deadline = Date.now() + timeoutMs

Calls

no outgoing calls

Tested by

no test coverage detected