MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / assertPartialLocationsEqual

Method assertPartialLocationsEqual

src/test/debug_client_ms.ts:420–430  ·  view source on GitHub ↗
(locA: IPartialLocation, locB: IPartialLocation)

Source from the content-addressed store, hash-verified

418 }
419
420 private assertPartialLocationsEqual(locA: IPartialLocation, locB: IPartialLocation): void {
421 if (locA.path) {
422 this.assertPath(locA.path, locB.path!, 'breakpoint verification mismatch: path');
423 }
424 if (typeof locA.line === 'number') {
425 assert.equal(locA.line, locB.line, 'breakpoint verification mismatch: line');
426 }
427 if (typeof locB.column === 'number' && typeof locA.column === 'number') {
428 assert.equal(locA.column, locB.column, 'breakpoint verification mismatch: column');
429 }
430 }
431
432 /*
433 * Returns a promise that will resolve if enough output events with the given category have been received

Callers 1

hitBreakpointMethod · 0.95

Calls 1

assertPathMethod · 0.95

Tested by

no test coverage detected