MCPcopy Index your code
hub / github.com/angular/angular / testChangesAsString

Function testChangesAsString

packages/core/test/change_detection/util.ts:129–165  ·  view source on GitHub ↗
({
  map,
  previous,
  additions,
  changes,
  removals,
}: {
  map?: any[];
  previous?: any[];
  additions?: any[];
  changes?: any[];
  removals?: any[];
})

Source from the content-addressed store, hash-verified

127}
128
129export function testChangesAsString({
130 map,
131 previous,
132 additions,
133 changes,
134 removals,
135}: {
136 map?: any[];
137 previous?: any[];
138 additions?: any[];
139 changes?: any[];
140 removals?: any[];
141}): string {
142 if (!map) map = [];
143 if (!previous) previous = [];
144 if (!additions) additions = [];
145 if (!changes) changes = [];
146 if (!removals) removals = [];
147
148 return (
149 'map: ' +
150 map.join(', ') +
151 '\n' +
152 'previous: ' +
153 previous.join(', ') +
154 '\n' +
155 'additions: ' +
156 additions.join(', ') +
157 '\n' +
158 'changes: ' +
159 changes.join(', ') +
160 '\n' +
161 'removals: ' +
162 removals.join(', ') +
163 '\n'
164 );
165}

Callers 2

kvChangesAsStringFunction · 0.85

Calls 1

joinMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…