MCPcopy Create free account
hub / github.com/angular/dev-infra / isSameCircularDependency

Function isSameCircularDependency

ng-dev/ts-circular-dependencies/golden.ts:109–119  ·  view source on GitHub ↗

Checks whether the specified circular dependencies are equal.

(actual: CircularDependency, expected: CircularDependency)

Source from the content-addressed store, hash-verified

107
108/** Checks whether the specified circular dependencies are equal. */
109function isSameCircularDependency(actual: CircularDependency, expected: CircularDependency) {
110 if (actual.length !== expected.length) {
111 return false;
112 }
113 for (let i = 0; i < actual.length; i++) {
114 if (actual[i] !== expected[i]) {
115 return false;
116 }
117 }
118 return true;
119}
120
121/**
122 * Compares two circular dependencies by respecting the alphabetic order of nodes in the

Callers 1

compareGoldensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected