MCPcopy
hub / github.com/opentrace/opentrace / runScanning

Function runScanning

ui/src/components/pipeline/__tests__/loading.test.ts:28–40  ·  view source on GitHub ↗

Drain the loading generator, collecting events and the final return value.

(...args: Parameters<typeof execute>)

Source from the content-addressed store, hash-verified

26
27/** Drain the loading generator, collecting events and the final return value. */
28function runScanning(...args: Parameters<typeof execute>): {
29 result: ScanResult;
30 events: PipelineEvent[];
31} {
32 const gen = execute(...args);
33 const events: PipelineEvent[] = [];
34 let step = gen.next();
35 while (!step.done) {
36 events.push(step.value);
37 step = gen.next();
38 }
39 return { result: step.value, events };
40}
41
42describe('scanning stage', () => {
43 it('creates Repository node', () => {

Callers 1

loading.test.tsFile · 0.85

Calls 2

executeFunction · 0.90
pushMethod · 0.80

Tested by

no test coverage detected