MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / armFault

Function armFault

e2e/src/surfaces/autumn.ts:323–337  ·  view source on GitHub ↗
(input: FaultInput)

Source from the content-addressed store, hash-verified

321 });
322
323 const armFault = (input: FaultInput) =>
324 Effect.gen(function* () {
325 const response = yield* Effect.promise(() =>
326 fetch(`${autumnUrl}/_emulate/faults`, {
327 method: "POST",
328 headers: { "content-type": "application/json" },
329 body: JSON.stringify(input),
330 }),
331 );
332 if (!response.ok) {
333 return yield* Effect.fail(
334 `autumn arm fault responded ${response.status}: ${yield* Effect.promise(() => response.text())}`,
335 );
336 }
337 });
338
339 const clearFaults = () =>
340 Effect.gen(function* () {

Callers

nothing calls this directly

Calls 2

textMethod · 0.65
fetchFunction · 0.50

Tested by

no test coverage detected