MCPcopy Index your code
hub / github.com/callstack/agent-device / assertResult

Function assertResult

test/integration/test-helpers.ts:107–118  ·  view source on GitHub ↗
(
    condition: unknown,
    step: string,
    args: string[],
    result: CliJsonResult,
    opts?: AssertResultOptions,
  )

Source from the content-addressed store, hash-verified

105 }
106
107 function assertResult(
108 condition: unknown,
109 step: string,
110 args: string[],
111 result: CliJsonResult,
112 opts?: AssertResultOptions,
113 ): void {
114 if (condition) {
115 return;
116 }
117 failWithContext(step, args, result, opts?.detail ?? 'assertion failed');
118 }
119
120 function failWithContext(
121 step: string,

Callers

nothing calls this directly

Calls 1

failWithContextFunction · 0.70

Tested by

no test coverage detected